mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: card width
Closes #142 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user