This commit is contained in:
2026-07-12 04:33:48 +08:00
parent f8a90ad305
commit e7ce0f7bae
151 changed files with 2765 additions and 2947 deletions

View File

@@ -30,7 +30,7 @@ class Download extends StatefulWidget {
class DownloadState extends State<Download> {
final _scaffoldKey = GlobalKey<ScaffoldState>();
Map<String, dynamic> data;
Map<String, dynamic>? data;
@override
Widget build(BuildContext context) {
@@ -57,18 +57,18 @@ class DownloadState extends State<Download> {
breadCrumbHeight: sizingInformation.deviceScreenType == DeviceScreenType.mobile ? null : Constants.BREADCRUMB_HEIGHT,
),
drawer: sizingInformation.deviceScreenType == DeviceScreenType.mobile ? MobileNavigationDrawer() : null,
body: ScreenTypeLayout(
mobile: MobileDownloadApps(data),
tablet: DesktopDownloadApps(data),
desktop: Scrollbar(
isAlwaysShown: true,
child: DesktopDownloadApps(data),
body: ScreenTypeLayout.builder(
mobile: (context) => MobileDownloadApps(data!),
tablet: (context) => DesktopDownloadApps(data!),
desktop: (context) => Scrollbar(
thumbVisibility: true,
child: DesktopDownloadApps(data!),
),
),
bottomNavigationBar: ScreenTypeLayout(
mobile: MobileBottomNav(),
tablet: BottomNav(),
desktop: BottomNav(),
bottomNavigationBar: ScreenTypeLayout.builder(
mobile: (context) => MobileBottomNav(),
tablet: (context) => BottomNav(),
desktop: (context) => BottomNav(),
),
),
);
@@ -79,7 +79,7 @@ class DownloadState extends State<Download> {
super.initState();
eventBus.on<OpenDrawer>().listen((event) {
if (mounted) {
_scaffoldKey.currentState.openDrawer();
_scaffoldKey.currentState?.openDrawer();
}
});
_loadData();