add qrcode route
This commit is contained in:
parent
eb7885c66e
commit
32a9bdb555
|
@ -44,8 +44,8 @@
|
|||
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
6436409327A31CD500820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
6436409E27A31CD600820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
6436409427A31CD300820AF7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
6436409D27A31CD500820AF7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
|
@ -225,8 +225,8 @@
|
|||
6436409C27A31CD800820AF7 /* InfoPlist.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
6436409327A31CD500820AF7 /* pt */,
|
||||
6436409E27A31CD600820AF7 /* en */,
|
||||
6436409427A31CD300820AF7 /* pt */,
|
||||
6436409D27A31CD500820AF7 /* en */,
|
||||
);
|
||||
name = InfoPlist.strings;
|
||||
sourceTree = "<group>";
|
||||
|
|
|
@ -101,4 +101,17 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
|
|||
},
|
||||
);
|
||||
}
|
||||
|
||||
Future accessQRCodeOptAction(BuildContext context) async {
|
||||
context.pushNamed(
|
||||
'qrCodePage',
|
||||
extra: <String, dynamic>{
|
||||
kTransitionInfoKey: const TransitionInfo(
|
||||
hasTransition: true,
|
||||
transitionType: PageTransitionType.scale,
|
||||
alignment: Alignment.bottomCenter,
|
||||
),
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -70,6 +70,10 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
|||
await _model.liberationHistoryOptAction(context);
|
||||
setState(() {});
|
||||
},
|
||||
accessQRCodeOptAction: () async {
|
||||
await _model.accessQRCodeOptAction(context);
|
||||
setState(() {});
|
||||
},
|
||||
),
|
||||
);
|
||||
} else {
|
||||
|
@ -102,6 +106,10 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
|||
await _model.liberationHistoryOptAction(context);
|
||||
setState(() {});
|
||||
},
|
||||
accessQRCodeOptAction: () async {
|
||||
await _model.accessQRCodeOptAction(context);
|
||||
setState(() {});
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@ class MenuListViewComponentWidget extends StatefulWidget {
|
|||
required this.peopleOnThePropertyOptAction,
|
||||
required this.acessHistoryOptAction,
|
||||
required this.liberationHistoryOptAction,
|
||||
required this.accessQRCodeOptAction,
|
||||
});
|
||||
|
||||
final Future Function()? changeMenuStyle;
|
||||
|
@ -23,6 +24,7 @@ class MenuListViewComponentWidget extends StatefulWidget {
|
|||
final Future Function()? peopleOnThePropertyOptAction;
|
||||
final Future Function()? acessHistoryOptAction;
|
||||
final Future Function()? liberationHistoryOptAction;
|
||||
final Future Function()? accessQRCodeOptAction;
|
||||
|
||||
@override
|
||||
State<MenuListViewComponentWidget> createState() =>
|
||||
|
@ -509,6 +511,14 @@ Pet */
|
|||
),
|
||||
Padding(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0.0, 10.0, 0.0, 20.0),
|
||||
child: InkWell(
|
||||
splashColor: Colors.transparent,
|
||||
focusColor: Colors.transparent,
|
||||
hoverColor: Colors.transparent,
|
||||
highlightColor: Colors.transparent,
|
||||
onTap: () async {
|
||||
await widget.accessQRCodeOptAction?.call();
|
||||
},
|
||||
child: Container(
|
||||
width: 100.0,
|
||||
height: double.infinity,
|
||||
|
@ -546,7 +556,8 @@ Pet */
|
|||
children: [
|
||||
Expanded(
|
||||
child: Align(
|
||||
alignment: const AlignmentDirectional(-1.0, 0.0),
|
||||
alignment:
|
||||
const AlignmentDirectional(-1.0, 0.0),
|
||||
child: Padding(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||
8.0, 0.0, 0.0, 0.0),
|
||||
|
@ -609,6 +620,7 @@ de Acesso */
|
|||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(0.0, 10.0, 0.0, 20.0),
|
||||
child: InkWell(
|
||||
|
|
|
@ -16,6 +16,7 @@ class MenuStaggeredViewComponentWidget extends StatefulWidget {
|
|||
required this.peopleOnThePropertyOptAction,
|
||||
required this.accessHistoryOptAction,
|
||||
required this.liberationHistoryOptAction,
|
||||
required this.accessQRCodeOptAction,
|
||||
});
|
||||
|
||||
final Future Function()? changeMenuStyleAction;
|
||||
|
@ -24,6 +25,7 @@ class MenuStaggeredViewComponentWidget extends StatefulWidget {
|
|||
final Future Function()? peopleOnThePropertyOptAction;
|
||||
final Future Function()? accessHistoryOptAction;
|
||||
final Future Function()? liberationHistoryOptAction;
|
||||
final Future Function()? accessQRCodeOptAction;
|
||||
|
||||
@override
|
||||
State<MenuStaggeredViewComponentWidget> createState() =>
|
||||
|
@ -532,15 +534,25 @@ Pet */
|
|||
),
|
||||
),
|
||||
),
|
||||
() => Container(
|
||||
() => InkWell(
|
||||
splashColor: Colors.transparent,
|
||||
focusColor: Colors.transparent,
|
||||
hoverColor: Colors.transparent,
|
||||
highlightColor: Colors.transparent,
|
||||
onTap: () async {
|
||||
await widget.accessQRCodeOptAction?.call();
|
||||
},
|
||||
child: Container(
|
||||
width: 100.0,
|
||||
height: 100.0,
|
||||
decoration: BoxDecoration(
|
||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||
color:
|
||||
FlutterFlowTheme.of(context).primaryBackground,
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
blurRadius: 4.0,
|
||||
color: FlutterFlowTheme.of(context).customColor5,
|
||||
color:
|
||||
FlutterFlowTheme.of(context).customColor5,
|
||||
offset: const Offset(
|
||||
0.0,
|
||||
2.0,
|
||||
|
@ -584,8 +596,8 @@ Pet */
|
|||
.primaryBackground,
|
||||
shape: BoxShape.circle,
|
||||
),
|
||||
alignment:
|
||||
const AlignmentDirectional(0.0, 0.0),
|
||||
alignment: const AlignmentDirectional(
|
||||
0.0, 0.0),
|
||||
child: Icon(
|
||||
FFIcons.kvector2,
|
||||
color:
|
||||
|
@ -607,7 +619,8 @@ Pet */
|
|||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Align(
|
||||
alignment: const AlignmentDirectional(0.0, 0.0),
|
||||
alignment:
|
||||
const AlignmentDirectional(0.0, 0.0),
|
||||
child: Text(
|
||||
FFLocalizations.of(context).getText(
|
||||
'9tli4i2x' /* QR Code
|
||||
|
@ -637,6 +650,7 @@ de Acesso */
|
|||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
() => InkWell(
|
||||
splashColor: Colors.transparent,
|
||||
focusColor: Colors.transparent,
|
||||
|
|
Loading…
Reference in New Issue