fix:持仓详情编辑,资讯下拉加载更多
This commit is contained in:
+28
-14
@@ -1,11 +1,13 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
||||
import 'package:shadcn_ui/shadcn_ui.dart';
|
||||
|
||||
import '../common/router/app_router.dart';
|
||||
import '../common/theme/jinzhi_theme.dart';
|
||||
import '../common/theme/spacing.dart';
|
||||
import '../common/theme/theme_controller.dart';
|
||||
import '../common/widgets/smart_refresh.dart';
|
||||
|
||||
class JinzhiApp extends ConsumerWidget {
|
||||
const JinzhiApp({super.key});
|
||||
@@ -15,22 +17,34 @@ class JinzhiApp extends ConsumerWidget {
|
||||
final router = ref.watch(routerProvider);
|
||||
final mode = ref.watch(themeModeControllerProvider);
|
||||
final textTheme = ShadTextTheme();
|
||||
return ShadApp.router(
|
||||
title: '金值',
|
||||
themeMode: mode,
|
||||
theme: ShadThemeData(
|
||||
brightness: Brightness.light,
|
||||
colorScheme: jinzhiLightScheme,
|
||||
textTheme: textTheme,
|
||||
radius: BorderRadius.circular(Spacing.radiusBase),
|
||||
return RefreshConfiguration(
|
||||
springDescription: const SpringDescription(
|
||||
mass: 1,
|
||||
stiffness: 364.718677686,
|
||||
damping: 35.2,
|
||||
),
|
||||
darkTheme: ShadThemeData(
|
||||
brightness: Brightness.dark,
|
||||
colorScheme: jinzhiDarkScheme,
|
||||
textTheme: textTheme,
|
||||
radius: BorderRadius.circular(Spacing.radiusBase),
|
||||
headerBuilder: () => const MaterialClassicHeader(),
|
||||
footerBuilder: () => jinzhiClassicFooter,
|
||||
hideFooterWhenNotFull: true,
|
||||
headerTriggerDistance: 60,
|
||||
maxOverScrollExtent: 100,
|
||||
child: ShadApp.router(
|
||||
title: '金值',
|
||||
themeMode: mode,
|
||||
theme: ShadThemeData(
|
||||
brightness: Brightness.light,
|
||||
colorScheme: jinzhiLightScheme,
|
||||
textTheme: textTheme,
|
||||
radius: BorderRadius.circular(Spacing.radiusBase),
|
||||
),
|
||||
darkTheme: ShadThemeData(
|
||||
brightness: Brightness.dark,
|
||||
colorScheme: jinzhiDarkScheme,
|
||||
textTheme: textTheme,
|
||||
radius: BorderRadius.circular(Spacing.radiusBase),
|
||||
),
|
||||
routerConfig: router,
|
||||
),
|
||||
routerConfig: router,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user