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

@@ -16,7 +16,7 @@ import '../widgets/mobile/MobileBottomNav.dart';
import '../widgets/mobile/mobile_minipos_learn_more.dart';
class MiniPosLearnMore extends StatefulWidget {
const MiniPosLearnMore({Key key}) : super(key: key);
const MiniPosLearnMore({Key? key}) : super(key: key);
@override
State<StatefulWidget> createState() {
@@ -26,7 +26,7 @@ class MiniPosLearnMore extends StatefulWidget {
class MiniPosLearnMoreState extends State<MiniPosLearnMore> {
final _scaffoldKey = GlobalKey<ScaffoldState>();
Map<String, dynamic> data;
Map<String, dynamic>? data;
@override
Widget build(BuildContext context) {
@@ -42,35 +42,36 @@ class MiniPosLearnMoreState extends State<MiniPosLearnMore> {
);
}
return WillPopScope(
child: ResponsiveBuilder(
builder: (context, sizingInformation) =>
Scaffold(
key: _scaffoldKey,
appBar: MiniNavigationBar(
title: S.of(context).minipos,
back: true,
breadCrumbs: [
BreadCrumb(S.of(context).minipos, null),
],
breadCrumbHeight: sizingInformation.deviceScreenType == DeviceScreenType.mobile ? null : Constants.BREADCRUMB_HEIGHT,
),
drawer: null,
body: ScreenTypeLayout(
mobile: MobileMiniPosLearnMore(data),
tablet: DesktopMiniPosLearnMore(data),
desktop: DesktopMiniPosLearnMore(data),
),
bottomNavigationBar: ScreenTypeLayout(
mobile: MobileBottomNav(currentIndex: 0,),
tablet: BottomNav(),
desktop: BottomNav(),
),
return ResponsiveBuilder(
builder: (context, sizingInformation) => PopScope(
canPop: true,
onPopInvokedWithResult: (didPop, result) {
if (didPop) return;
// 可以在这里处理返回逻辑
},
child: Scaffold(
key: _scaffoldKey,
appBar: MiniNavigationBar(
title: S.of(context).minipos,
back: true,
breadCrumbs: [
BreadCrumb(S.of(context).minipos, null),
],
breadCrumbHeight: sizingInformation.deviceScreenType == DeviceScreenType.mobile ? null : Constants.BREADCRUMB_HEIGHT,
),
drawer: null,
body: ScreenTypeLayout.builder(
mobile: (context) => MobileMiniPosLearnMore(data!),
tablet: (context) => DesktopMiniPosLearnMore(data!),
desktop: (context) => DesktopMiniPosLearnMore(data!),
),
bottomNavigationBar: ScreenTypeLayout.builder(
mobile: (context) => MobileBottomNav(currentIndex: 0),
tablet: (context) => BottomNav(),
desktop: (context) => BottomNav(),
),
),
),
onWillPop: () async {
return true;
},
);
}