mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 19:51:11 +08:00
opt show more text
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -305,8 +305,13 @@ class Pref {
|
||||
static bool get horizontalMemberPage =>
|
||||
_setting.get(SettingBoxKey.horizontalMemberPage, defaultValue: false);
|
||||
|
||||
static int get replyLengthLimit =>
|
||||
_setting.get(SettingBoxKey.replyLengthLimit, defaultValue: 6);
|
||||
static int? get replyLengthLimit {
|
||||
int length = _setting.get(SettingBoxKey.replyLengthLimit, defaultValue: 6);
|
||||
if (length <= 0) {
|
||||
return null;
|
||||
}
|
||||
return length;
|
||||
}
|
||||
|
||||
static int get defaultPicQa =>
|
||||
_setting.get(SettingBoxKey.defaultPicQa, defaultValue: 10);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:PiliPlus/common/constants.dart';
|
||||
import 'package:PiliPlus/main.dart';
|
||||
import 'package:PiliPlus/utils/extension.dart';
|
||||
import 'package:PiliPlus/utils/storage_pref.dart';
|
||||
@@ -91,10 +92,7 @@ class ThemeUtils {
|
||||
bottomSheetTheme: BottomSheetThemeData(
|
||||
backgroundColor: colorScheme.surface,
|
||||
shape: const RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.only(
|
||||
topLeft: Radius.circular(18),
|
||||
topRight: Radius.circular(18),
|
||||
),
|
||||
borderRadius: StyleString.bottomSheetRadius,
|
||||
),
|
||||
),
|
||||
// ignore: deprecated_member_use
|
||||
|
||||
Reference in New Issue
Block a user