feat: field editing bloc refactor and add mobile field editor (#3981)

This commit is contained in:
Richard Shiue
2023-11-23 16:43:29 +08:00
committed by GitHub
parent 8afbf28430
commit 66835a5409
49 changed files with 1002 additions and 1118 deletions

View File

@ -454,10 +454,12 @@ GoRoute _mobileCardDetailScreenRoute() {
pageBuilder: (context, state) {
final args = state.extra as Map<String, dynamic>;
final rowController = args[MobileCardDetailScreen.argRowController];
final fieldController = args[MobileCardDetailScreen.argFieldController];
return MaterialPage(
child: MobileCardDetailScreen(
rowController: rowController,
fieldController: fieldController,
),
);
},
@ -471,6 +473,7 @@ GoRoute _mobileCardPropertyEditScreenRoute() {
pageBuilder: (context, state) {
final args = state.extra as Map<String, dynamic>;
final cellContext = args[CardPropertyEditScreen.argCellContext];
final fieldController = args[CardPropertyEditScreen.argFieldController];
final rowDetailBloc = args[CardPropertyEditScreen.argRowDetailBloc];
return MaterialPage(
@ -478,6 +481,7 @@ GoRoute _mobileCardPropertyEditScreenRoute() {
value: rowDetailBloc as RowDetailBloc,
child: CardPropertyEditScreen(
cellContext: cellContext,
fieldController: fieldController,
),
),
);
@ -508,11 +512,16 @@ GoRoute _mobileCreateRowFieldScreenRoute() {
pageBuilder: (context, state) {
final args = state.extra as Map<String, dynamic>;
final viewId = args[MobileCreateRowFieldScreen.argViewId];
final fieldController =
args[MobileCreateRowFieldScreen.argFieldController];
final typeOption = args[MobileCreateRowFieldScreen.argTypeOption];
return MaterialPage(
child:
MobileCreateRowFieldScreen(viewId: viewId, typeOption: typeOption),
child: MobileCreateRowFieldScreen(
viewId: viewId,
typeOption: typeOption,
fieldController: fieldController,
),
fullscreenDialog: true,
);
},