bump flutter

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-21 15:36:13 +08:00
parent ac60ac417b
commit 04a157c64a
7 changed files with 30 additions and 23 deletions

View File

@@ -600,8 +600,7 @@ class RefreshIndicatorState extends State<RefreshIndicator>
_status = RefreshIndicatorStatus.refresh;
});
final Future<void> refreshResult = widget.onRefresh();
refreshResult.whenComplete(() {
widget.onRefresh().whenComplete(() {
if (mounted && _status == RefreshIndicatorStatus.refresh) {
completer.complete();
_dismiss(RefreshIndicatorStatus.done);

View File

@@ -87,4 +87,12 @@ class CustomSpringDescription implements SpringDescription {
static final _instance = CustomSpringDescription._();
factory CustomSpringDescription() => _instance;
/// Defaults to 0.
@override
double bounce = 0.0;
/// Defaults to 0.5 seconds.
@override
Duration duration = const Duration(milliseconds: 500);
}

View File

@@ -297,7 +297,7 @@ class PageUtils {
context: context,
useSafeArea: true,
isScrollControlled: true,
sheetAnimationStyle: AnimationStyle(curve: Curves.ease),
sheetAnimationStyle: const AnimationStyle(curve: Curves.ease),
constraints: BoxConstraints(
maxWidth: min(640, min(Get.width, Get.height)),
),
@@ -531,7 +531,7 @@ class PageUtils {
elevation: 0,
backgroundColor: Colors.transparent,
transitionAnimationController: transitionAnimationController,
sheetAnimationStyle: AnimationStyle(duration: Duration.zero),
sheetAnimationStyle: const AnimationStyle(duration: Duration.zero),
);
}

View File

@@ -157,7 +157,7 @@ class RequestUtils {
context: context,
useSafeArea: true,
isScrollControlled: true,
sheetAnimationStyle: AnimationStyle(curve: Curves.ease),
sheetAnimationStyle: const AnimationStyle(curve: Curves.ease),
constraints: BoxConstraints(
maxWidth: min(640, min(Get.width, Get.height)),
),

View File

@@ -39,7 +39,7 @@ class ThemeUtils {
labelSmall: textStyle,
),
tabBarTheme:
fontWeight == null ? null : TabBarTheme(labelStyle: textStyle),
fontWeight == null ? null : TabBarThemeData(labelStyle: textStyle),
appBarTheme: AppBarTheme(
elevation: 0,
titleSpacing: 0,
@@ -72,7 +72,7 @@ class ThemeUtils {
popupMenuTheme: PopupMenuThemeData(
surfaceTintColor: isDynamic ? colorScheme.onSurfaceVariant : null,
),
cardTheme: CardTheme(
cardTheme: CardThemeData(
elevation: 1,
surfaceTintColor: isDynamic
? colorScheme.onSurfaceVariant
@@ -84,7 +84,7 @@ class ThemeUtils {
progressIndicatorTheme: ProgressIndicatorThemeData(
refreshBackgroundColor: colorScheme.onSecondary,
),
dialogTheme: DialogTheme(
dialogTheme: DialogThemeData(
titleTextStyle: TextStyle(
fontSize: 18,
color: colorScheme.onSurface,