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>"; };
|
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>"; };
|
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>"; };
|
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>"; };
|
6436409427A31CD300820AF7 /* 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>"; };
|
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>"; };
|
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
|
@ -225,8 +225,8 @@
|
||||||
6436409C27A31CD800820AF7 /* InfoPlist.strings */ = {
|
6436409C27A31CD800820AF7 /* InfoPlist.strings */ = {
|
||||||
isa = PBXVariantGroup;
|
isa = PBXVariantGroup;
|
||||||
children = (
|
children = (
|
||||||
6436409327A31CD500820AF7 /* pt */,
|
6436409427A31CD300820AF7 /* pt */,
|
||||||
6436409E27A31CD600820AF7 /* en */,
|
6436409D27A31CD500820AF7 /* en */,
|
||||||
);
|
);
|
||||||
name = InfoPlist.strings;
|
name = InfoPlist.strings;
|
||||||
sourceTree = "<group>";
|
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);
|
await _model.liberationHistoryOptAction(context);
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
|
accessQRCodeOptAction: () async {
|
||||||
|
await _model.accessQRCodeOptAction(context);
|
||||||
|
setState(() {});
|
||||||
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@ -102,6 +106,10 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
|
||||||
await _model.liberationHistoryOptAction(context);
|
await _model.liberationHistoryOptAction(context);
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
|
accessQRCodeOptAction: () async {
|
||||||
|
await _model.accessQRCodeOptAction(context);
|
||||||
|
setState(() {});
|
||||||
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ class MenuListViewComponentWidget extends StatefulWidget {
|
||||||
required this.peopleOnThePropertyOptAction,
|
required this.peopleOnThePropertyOptAction,
|
||||||
required this.acessHistoryOptAction,
|
required this.acessHistoryOptAction,
|
||||||
required this.liberationHistoryOptAction,
|
required this.liberationHistoryOptAction,
|
||||||
|
required this.accessQRCodeOptAction,
|
||||||
});
|
});
|
||||||
|
|
||||||
final Future Function()? changeMenuStyle;
|
final Future Function()? changeMenuStyle;
|
||||||
|
@ -23,6 +24,7 @@ class MenuListViewComponentWidget extends StatefulWidget {
|
||||||
final Future Function()? peopleOnThePropertyOptAction;
|
final Future Function()? peopleOnThePropertyOptAction;
|
||||||
final Future Function()? acessHistoryOptAction;
|
final Future Function()? acessHistoryOptAction;
|
||||||
final Future Function()? liberationHistoryOptAction;
|
final Future Function()? liberationHistoryOptAction;
|
||||||
|
final Future Function()? accessQRCodeOptAction;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<MenuListViewComponentWidget> createState() =>
|
State<MenuListViewComponentWidget> createState() =>
|
||||||
|
@ -509,102 +511,112 @@ Pet */
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(0.0, 10.0, 0.0, 20.0),
|
padding: const EdgeInsetsDirectional.fromSTEB(0.0, 10.0, 0.0, 20.0),
|
||||||
child: Container(
|
child: InkWell(
|
||||||
width: 100.0,
|
splashColor: Colors.transparent,
|
||||||
height: double.infinity,
|
focusColor: Colors.transparent,
|
||||||
decoration: BoxDecoration(
|
hoverColor: Colors.transparent,
|
||||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
highlightColor: Colors.transparent,
|
||||||
boxShadow: [
|
onTap: () async {
|
||||||
BoxShadow(
|
await widget.accessQRCodeOptAction?.call();
|
||||||
blurRadius: 4.0,
|
},
|
||||||
color: FlutterFlowTheme.of(context).customColor5,
|
child: Container(
|
||||||
offset: const Offset(
|
width: 100.0,
|
||||||
0.0,
|
height: double.infinity,
|
||||||
2.0,
|
decoration: BoxDecoration(
|
||||||
),
|
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||||
)
|
boxShadow: [
|
||||||
],
|
BoxShadow(
|
||||||
borderRadius: BorderRadius.circular(24.0),
|
blurRadius: 4.0,
|
||||||
shape: BoxShape.rectangle,
|
color: FlutterFlowTheme.of(context).customColor5,
|
||||||
border: Border.all(
|
offset: const Offset(
|
||||||
color: FlutterFlowTheme.of(context).alternate,
|
0.0,
|
||||||
width: 0.5,
|
2.0,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
borderRadius: BorderRadius.circular(24.0),
|
||||||
|
shape: BoxShape.rectangle,
|
||||||
|
border: Border.all(
|
||||||
|
color: FlutterFlowTheme.of(context).alternate,
|
||||||
|
width: 0.5,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
child: Padding(
|
||||||
child: Padding(
|
padding: const EdgeInsets.all(4.0),
|
||||||
padding: const EdgeInsets.all(4.0),
|
child: Column(
|
||||||
child: Column(
|
mainAxisSize: MainAxisSize.min,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
children: [
|
||||||
children: [
|
Align(
|
||||||
Align(
|
alignment: const AlignmentDirectional(0.0, 0.0),
|
||||||
alignment: const AlignmentDirectional(0.0, 0.0),
|
child: Row(
|
||||||
child: Row(
|
mainAxisSize: MainAxisSize.max,
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
children: [
|
||||||
children: [
|
Expanded(
|
||||||
Expanded(
|
child: Align(
|
||||||
child: Align(
|
alignment:
|
||||||
alignment: const AlignmentDirectional(-1.0, 0.0),
|
const AlignmentDirectional(-1.0, 0.0),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
8.0, 0.0, 0.0, 0.0),
|
8.0, 0.0, 0.0, 0.0),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: 30.0,
|
width: 30.0,
|
||||||
height: 30.0,
|
height: 30.0,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: FlutterFlowTheme.of(context)
|
color: FlutterFlowTheme.of(context)
|
||||||
.primaryBackground,
|
.primaryBackground,
|
||||||
shape: BoxShape.circle,
|
shape: BoxShape.circle,
|
||||||
),
|
),
|
||||||
alignment:
|
alignment:
|
||||||
const AlignmentDirectional(0.0, 0.0),
|
const AlignmentDirectional(0.0, 0.0),
|
||||||
child: Icon(
|
child: Icon(
|
||||||
FFIcons.kvector2,
|
FFIcons.kvector2,
|
||||||
color: FlutterFlowTheme.of(context)
|
color: FlutterFlowTheme.of(context)
|
||||||
.accent1,
|
.accent1,
|
||||||
size: 24.0,
|
size: 24.0,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
Align(
|
||||||
Align(
|
alignment: const AlignmentDirectional(0.0, 0.0),
|
||||||
alignment: const AlignmentDirectional(0.0, 0.0),
|
child: Row(
|
||||||
child: Row(
|
mainAxisSize: MainAxisSize.min,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
children: [
|
||||||
children: [
|
Align(
|
||||||
Align(
|
alignment: const AlignmentDirectional(0.0, 0.0),
|
||||||
alignment: const AlignmentDirectional(0.0, 0.0),
|
child: Text(
|
||||||
child: Text(
|
FFLocalizations.of(context).getText(
|
||||||
FFLocalizations.of(context).getText(
|
'l6b9o7yn' /* QR Code
|
||||||
'l6b9o7yn' /* QR Code
|
|
||||||
de Acesso */
|
de Acesso */
|
||||||
,
|
,
|
||||||
|
),
|
||||||
|
style: FlutterFlowTheme.of(context)
|
||||||
|
.titleLarge
|
||||||
|
.override(
|
||||||
|
fontFamily: 'Nunito',
|
||||||
|
color: FlutterFlowTheme.of(context)
|
||||||
|
.primaryText,
|
||||||
|
fontSize: 14.0,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
useGoogleFonts: GoogleFonts.asMap()
|
||||||
|
.containsKey('Nunito'),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
|
||||||
.titleLarge
|
|
||||||
.override(
|
|
||||||
fontFamily: 'Nunito',
|
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.primaryText,
|
|
||||||
fontSize: 14.0,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
useGoogleFonts: GoogleFonts.asMap()
|
|
||||||
.containsKey('Nunito'),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
].divide(const SizedBox(height: 0.0)),
|
||||||
].divide(const SizedBox(height: 0.0)),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -16,6 +16,7 @@ class MenuStaggeredViewComponentWidget extends StatefulWidget {
|
||||||
required this.peopleOnThePropertyOptAction,
|
required this.peopleOnThePropertyOptAction,
|
||||||
required this.accessHistoryOptAction,
|
required this.accessHistoryOptAction,
|
||||||
required this.liberationHistoryOptAction,
|
required this.liberationHistoryOptAction,
|
||||||
|
required this.accessQRCodeOptAction,
|
||||||
});
|
});
|
||||||
|
|
||||||
final Future Function()? changeMenuStyleAction;
|
final Future Function()? changeMenuStyleAction;
|
||||||
|
@ -24,6 +25,7 @@ class MenuStaggeredViewComponentWidget extends StatefulWidget {
|
||||||
final Future Function()? peopleOnThePropertyOptAction;
|
final Future Function()? peopleOnThePropertyOptAction;
|
||||||
final Future Function()? accessHistoryOptAction;
|
final Future Function()? accessHistoryOptAction;
|
||||||
final Future Function()? liberationHistoryOptAction;
|
final Future Function()? liberationHistoryOptAction;
|
||||||
|
final Future Function()? accessQRCodeOptAction;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<MenuStaggeredViewComponentWidget> createState() =>
|
State<MenuStaggeredViewComponentWidget> createState() =>
|
||||||
|
@ -532,108 +534,120 @@ Pet */
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
() => Container(
|
() => InkWell(
|
||||||
width: 100.0,
|
splashColor: Colors.transparent,
|
||||||
height: 100.0,
|
focusColor: Colors.transparent,
|
||||||
decoration: BoxDecoration(
|
hoverColor: Colors.transparent,
|
||||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
highlightColor: Colors.transparent,
|
||||||
boxShadow: [
|
onTap: () async {
|
||||||
BoxShadow(
|
await widget.accessQRCodeOptAction?.call();
|
||||||
blurRadius: 4.0,
|
},
|
||||||
color: FlutterFlowTheme.of(context).customColor5,
|
child: Container(
|
||||||
offset: const Offset(
|
width: 100.0,
|
||||||
0.0,
|
height: 100.0,
|
||||||
2.0,
|
decoration: BoxDecoration(
|
||||||
),
|
color:
|
||||||
)
|
FlutterFlowTheme.of(context).primaryBackground,
|
||||||
],
|
boxShadow: [
|
||||||
borderRadius: BorderRadius.circular(24.0),
|
BoxShadow(
|
||||||
shape: BoxShape.rectangle,
|
blurRadius: 4.0,
|
||||||
border: Border.all(
|
color:
|
||||||
color: FlutterFlowTheme.of(context).alternate,
|
FlutterFlowTheme.of(context).customColor5,
|
||||||
width: 0.5,
|
offset: const Offset(
|
||||||
|
0.0,
|
||||||
|
2.0,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
borderRadius: BorderRadius.circular(24.0),
|
||||||
|
shape: BoxShape.rectangle,
|
||||||
|
border: Border.all(
|
||||||
|
color: FlutterFlowTheme.of(context).alternate,
|
||||||
|
width: 0.5,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
child: Padding(
|
||||||
child: Padding(
|
padding: const EdgeInsets.all(4.0),
|
||||||
padding: const EdgeInsets.all(4.0),
|
child: Column(
|
||||||
child: Column(
|
mainAxisSize: MainAxisSize.min,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
children: [
|
||||||
children: [
|
Align(
|
||||||
Align(
|
alignment: const AlignmentDirectional(0.0, 0.0),
|
||||||
alignment: const AlignmentDirectional(0.0, 0.0),
|
child: Row(
|
||||||
child: Row(
|
mainAxisSize: MainAxisSize.max,
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
children: [
|
||||||
children: [
|
Expanded(
|
||||||
Expanded(
|
child: Align(
|
||||||
child: Align(
|
alignment:
|
||||||
alignment:
|
const AlignmentDirectional(-1.0, 0.0),
|
||||||
const AlignmentDirectional(-1.0, 0.0),
|
child: Padding(
|
||||||
child: Padding(
|
padding:
|
||||||
padding:
|
const EdgeInsetsDirectional.fromSTEB(
|
||||||
const EdgeInsetsDirectional.fromSTEB(
|
8.0, 0.0, 0.0, 0.0),
|
||||||
8.0, 0.0, 0.0, 0.0),
|
child: Container(
|
||||||
child: Container(
|
width: 30.0,
|
||||||
width: 30.0,
|
height: 30.0,
|
||||||
height: 30.0,
|
decoration: BoxDecoration(
|
||||||
decoration: BoxDecoration(
|
color:
|
||||||
color:
|
FlutterFlowTheme.of(context)
|
||||||
FlutterFlowTheme.of(context)
|
.primaryBackground,
|
||||||
.primaryBackground,
|
shape: BoxShape.circle,
|
||||||
shape: BoxShape.circle,
|
),
|
||||||
),
|
alignment: const AlignmentDirectional(
|
||||||
alignment:
|
0.0, 0.0),
|
||||||
const AlignmentDirectional(0.0, 0.0),
|
child: Icon(
|
||||||
child: Icon(
|
FFIcons.kvector2,
|
||||||
FFIcons.kvector2,
|
color:
|
||||||
color:
|
FlutterFlowTheme.of(context)
|
||||||
FlutterFlowTheme.of(context)
|
.accent1,
|
||||||
.accent1,
|
size: 24.0,
|
||||||
size: 24.0,
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
Align(
|
||||||
Align(
|
alignment: const AlignmentDirectional(0.0, 0.0),
|
||||||
alignment: const AlignmentDirectional(0.0, 0.0),
|
child: Row(
|
||||||
child: Row(
|
mainAxisSize: MainAxisSize.min,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
children: [
|
||||||
children: [
|
Align(
|
||||||
Align(
|
alignment:
|
||||||
alignment: const AlignmentDirectional(0.0, 0.0),
|
const AlignmentDirectional(0.0, 0.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
FFLocalizations.of(context).getText(
|
FFLocalizations.of(context).getText(
|
||||||
'9tli4i2x' /* QR Code
|
'9tli4i2x' /* QR Code
|
||||||
de Acesso */
|
de Acesso */
|
||||||
,
|
,
|
||||||
|
),
|
||||||
|
style: FlutterFlowTheme.of(context)
|
||||||
|
.titleLarge
|
||||||
|
.override(
|
||||||
|
fontFamily: 'Nunito',
|
||||||
|
color:
|
||||||
|
FlutterFlowTheme.of(context)
|
||||||
|
.primaryText,
|
||||||
|
fontSize: 14.0,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
useGoogleFonts:
|
||||||
|
GoogleFonts.asMap()
|
||||||
|
.containsKey('Nunito'),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
|
||||||
.titleLarge
|
|
||||||
.override(
|
|
||||||
fontFamily: 'Nunito',
|
|
||||||
color:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.primaryText,
|
|
||||||
fontSize: 14.0,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
useGoogleFonts:
|
|
||||||
GoogleFonts.asMap()
|
|
||||||
.containsKey('Nunito'),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
),
|
].divide(const SizedBox(height: 0.0)),
|
||||||
].divide(const SizedBox(height: 0.0)),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue