opt: card width

Closes #142

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-12 09:56:18 +08:00
parent 3d7583d376
commit f8dc7ece2d
3 changed files with 3 additions and 4 deletions

View File

@@ -154,7 +154,7 @@ List<SettingsModel> get styleSettings => [
context: Get.context!,
builder: (context) {
return SlideDialog<double>(
title: '最大列宽度默认240dp',
title: '最大列宽度默认280dp',
value: GStorage.maxRowWidth,
min: 150.0,
max: 500.0,

View File

@@ -4,8 +4,7 @@ import 'package:flutter/rendering.dart';
import 'storage.dart';
class Grid {
static double maxRowWidth = GStorage.setting
.get(SettingBoxKey.maxRowWidth, defaultValue: 240.0) as double;
static double maxRowWidth = GStorage.maxRowWidth;
//
// static double calculateActualWidth(BuildContext context, double maxCrossAxisExtent, double crossAxisSpacing, {double? screenWidthOffset}) {
// double screenWidth = MediaQuery.of(context).size.width;

View File

@@ -118,7 +118,7 @@ class GStorage {
setting.get(SettingBoxKey.previewQuality, defaultValue: 80);
static double get maxRowWidth =>
setting.get(SettingBoxKey.maxRowWidth, defaultValue: 240.0);
setting.get(SettingBoxKey.maxRowWidth, defaultValue: 280.0);
static UpPanelPosition get upPanelPosition =>
UpPanelPosition.values[setting.get(SettingBoxKey.upPanelPosition,