feat:切换flutter版本
This commit is contained in:
1 parent
ee761ccc48
commit
72443f7abf
32 files changed
+536
-375
No files matched your search
@@ -1,9 +1,9 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:ducafe_ui_core/ducafe_ui_core.dart';
|
||||
// import 'package:ducafe_ui_core/ducafe_ui_core.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_subscreen_plugin/flutter_subscreen_plugin.dart';
|
||||
import 'package:forui/forui.dart';
|
||||
// import 'package:forui/forui.dart';
|
||||
import 'package:pj_supermarket_cloud/common/index.dart';
|
||||
|
||||
import 'package:pj_supermarket_cloud/sub_screen/page/index.dart';
|
||||
@@ -37,7 +37,6 @@ class _SubAppPageState extends State<SubAppPage> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theme = FTheme.of(context);
|
||||
return MaterialApp(
|
||||
navigatorKey: SubNavigatorKey.navigatorKey,
|
||||
debugShowCheckedModeBanner: false,
|
||||
@@ -45,11 +44,8 @@ class _SubAppPageState extends State<SubAppPage> {
|
||||
SubRouteNames.subProduct: (context) => const SubProductPage(),
|
||||
},
|
||||
home: Scaffold(
|
||||
backgroundColor: theme.colorScheme.background,
|
||||
body: Text(
|
||||
'欢迎使用',
|
||||
style: theme.typography.xl4,
|
||||
).center(),
|
||||
backgroundColor: Colors.white,
|
||||
body: Text('欢迎使用'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_subscreen_plugin/flutter_subscreen_plugin.dart';
|
||||
|
||||
import 'package:pj_supermarket_cloud/common/index.dart';
|
||||
|
||||
class SubProductPage extends StatefulWidget {
|
||||
const SubProductPage({super.key});
|
||||
|
||||
@@ -19,10 +17,10 @@ class _SubProductPageState extends State<SubProductPage> {
|
||||
void initState() {
|
||||
super.initState();
|
||||
_streamSubscription = SubScreenPlugin.viceStream.listen((event) {
|
||||
dynamic params = event.arguments;
|
||||
final action = SubScreenAction.values.fromCode(event.method);
|
||||
if (action == null) return;
|
||||
if (action == SubScreenAction.updateCard) {}
|
||||
// dynamic params = event.arguments;
|
||||
// final action = SubScreenAction.values.fromCode(event.method);
|
||||
// if (action == null) return;
|
||||
// if (action == SubScreenAction.updateCard) {}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -34,6 +32,8 @@ class _SubProductPageState extends State<SubProductPage> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container();
|
||||
return Container(
|
||||
color: Colors.white,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user