Updating to latest FlutterFlow output.
This commit is contained in:
parent
dcc29abc21
commit
a4a389854c
|
@ -86,7 +86,7 @@ class _MenuStaggeredViewComponentWidgetState
|
|||
),
|
||||
crossAxisSpacing: 10.0,
|
||||
mainAxisSpacing: 10.0,
|
||||
itemCount: 8,
|
||||
itemCount: 9,
|
||||
padding: const EdgeInsets.fromLTRB(
|
||||
0,
|
||||
10.0,
|
||||
|
|
|
@ -152,7 +152,7 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
|||
'en': 'FREE ACCESS',
|
||||
},
|
||||
'mp6igsok': {
|
||||
'pt': 'Home',
|
||||
'pt': '',
|
||||
'en': '',
|
||||
},
|
||||
},
|
||||
|
@ -490,6 +490,28 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
|||
'en': '',
|
||||
},
|
||||
},
|
||||
// preferencesPage
|
||||
{
|
||||
'1vyj6y7n': {
|
||||
'pt': 'Preferencias',
|
||||
'en': '',
|
||||
},
|
||||
'uv1iug83': {
|
||||
'pt': '',
|
||||
'en': '',
|
||||
},
|
||||
},
|
||||
// settingsPage
|
||||
{
|
||||
'bc698859': {
|
||||
'pt': 'Preferencias',
|
||||
'en': '',
|
||||
},
|
||||
'8fgc7z33': {
|
||||
'pt': '',
|
||||
'en': '',
|
||||
},
|
||||
},
|
||||
// visitorDetailsModalTemplateComponent
|
||||
{
|
||||
'kqzf7nx2': {
|
||||
|
@ -844,6 +866,10 @@ final kTranslationsMap = <Map<String, Map<String, String>>>[
|
|||
'pt': 'Histórico\nde Liberação',
|
||||
'en': 'Liberation\nHistory',
|
||||
},
|
||||
'dzk31zpc': {
|
||||
'pt': 'Preferencias\ndo Sistema',
|
||||
'en': '',
|
||||
},
|
||||
},
|
||||
// messageWellComponent
|
||||
{
|
||||
|
|
|
@ -75,7 +75,9 @@ GoRouter createRouter(AppStateNotifier appStateNotifier) => GoRouter(
|
|||
FFRoute(
|
||||
name: 'homePage',
|
||||
path: '/homePage',
|
||||
builder: (context, params) => const HomePageWidget(),
|
||||
builder: (context, params) => params.isEmpty
|
||||
? const NavBarPage(initialPage: 'homePage')
|
||||
: const HomePageWidget(),
|
||||
),
|
||||
FFRoute(
|
||||
name: 'visitHistoryPage',
|
||||
|
@ -185,6 +187,18 @@ GoRouter createRouter(AppStateNotifier appStateNotifier) => GoRouter(
|
|||
name: 'qrCodePage',
|
||||
path: '/qrCodePage',
|
||||
builder: (context, params) => const QrCodePageWidget(),
|
||||
),
|
||||
FFRoute(
|
||||
name: 'preferencesPage',
|
||||
path: '/preferencesPage',
|
||||
builder: (context, params) => const PreferencesPageWidget(),
|
||||
),
|
||||
FFRoute(
|
||||
name: 'settingsPage',
|
||||
path: '/settingsPage',
|
||||
builder: (context, params) => params.isEmpty
|
||||
? const NavBarPage(initialPage: 'settingsPage')
|
||||
: const SettingsPageWidget(),
|
||||
)
|
||||
].map((r) => r.toRoute(appStateNotifier)).toList(),
|
||||
);
|
||||
|
|
|
@ -24,3 +24,6 @@ export '/pages/sign_up_page/sign_up_page_widget.dart' show SignUpPageWidget;
|
|||
|
||||
export '/pages/welcome_page/welcome_page_widget.dart' show WelcomePageWidget;
|
||||
export '/pages/qr_code_page/qr_code_page_widget.dart' show QrCodePageWidget;
|
||||
export '/pages/preferences_page/preferences_page_widget.dart'
|
||||
show PreferencesPageWidget;
|
||||
export '/pages/settings_page/settings_page_widget.dart' show SettingsPageWidget;
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
import '/flutter_flow/flutter_flow_util.dart';
|
||||
import 'preferences_page_widget.dart' show PreferencesPageWidget;
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class PreferencesPageModel extends FlutterFlowModel<PreferencesPageWidget> {
|
||||
/// Local state fields for this page.
|
||||
|
||||
bool fingerprint = false;
|
||||
|
||||
bool? person;
|
||||
|
||||
bool? changPass;
|
||||
|
||||
bool? notify;
|
||||
|
||||
/// State fields for stateful widgets in this page.
|
||||
|
||||
final unfocusNode = FocusNode();
|
||||
|
||||
@override
|
||||
void initState(BuildContext context) {}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
unfocusNode.dispose();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,167 @@
|
|||
import '/flutter_flow/flutter_flow_icon_button.dart';
|
||||
import '/flutter_flow/flutter_flow_theme.dart';
|
||||
import '/flutter_flow/flutter_flow_util.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'preferences_page_model.dart';
|
||||
export 'preferences_page_model.dart';
|
||||
|
||||
class PreferencesPageWidget extends StatefulWidget {
|
||||
const PreferencesPageWidget({super.key});
|
||||
|
||||
@override
|
||||
State<PreferencesPageWidget> createState() => _PreferencesPageWidgetState();
|
||||
}
|
||||
|
||||
class _PreferencesPageWidgetState extends State<PreferencesPageWidget> {
|
||||
late PreferencesPageModel _model;
|
||||
|
||||
final scaffoldKey = GlobalKey<ScaffoldState>();
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_model = createModel(context, () => PreferencesPageModel());
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_model.dispose();
|
||||
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
child: Scaffold(
|
||||
key: scaffoldKey,
|
||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||
appBar: AppBar(
|
||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||
automaticallyImplyLeading: false,
|
||||
title: Text(
|
||||
FFLocalizations.of(context).getText(
|
||||
'1vyj6y7n' /* Preferencias */,
|
||||
),
|
||||
style: FlutterFlowTheme.of(context).headlineMedium.override(
|
||||
fontFamily: 'Nunito',
|
||||
color: FlutterFlowTheme.of(context).primaryText,
|
||||
fontSize: 17.0,
|
||||
letterSpacing: 0.0,
|
||||
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
|
||||
),
|
||||
),
|
||||
actions: const [],
|
||||
centerTitle: true,
|
||||
elevation: 0.0,
|
||||
),
|
||||
body: SafeArea(
|
||||
top: true,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsetsDirectional.fromSTEB(20.0, 0.0, 20.0, 0.0),
|
||||
child: GridView(
|
||||
padding: const EdgeInsets.fromLTRB(
|
||||
0,
|
||||
20.0,
|
||||
0,
|
||||
20.0,
|
||||
),
|
||||
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
|
||||
crossAxisCount: 3,
|
||||
crossAxisSpacing: 10.0,
|
||||
mainAxisSpacing: 10.0,
|
||||
childAspectRatio: 1.0,
|
||||
),
|
||||
shrinkWrap: true,
|
||||
scrollDirection: Axis.vertical,
|
||||
children: [
|
||||
FlutterFlowIconButton(
|
||||
borderRadius: 20.0,
|
||||
borderWidth: 1.0,
|
||||
buttonSize: double.infinity,
|
||||
fillColor: FlutterFlowTheme.of(context).primary,
|
||||
disabledColor: FlutterFlowTheme.of(context).alternate,
|
||||
disabledIconColor: FlutterFlowTheme.of(context).primary,
|
||||
icon: Icon(
|
||||
Icons.fingerprint,
|
||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||
size: 40.0,
|
||||
),
|
||||
onPressed: _model.fingerprint
|
||||
? null
|
||||
: () {
|
||||
print('IconButton pressed ...');
|
||||
},
|
||||
),
|
||||
FlutterFlowIconButton(
|
||||
borderRadius: 20.0,
|
||||
borderWidth: 1.0,
|
||||
buttonSize: 40.0,
|
||||
fillColor: FlutterFlowTheme.of(context).primary,
|
||||
disabledColor: FlutterFlowTheme.of(context).alternate,
|
||||
disabledIconColor: FlutterFlowTheme.of(context).primary,
|
||||
icon: Icon(
|
||||
Icons.person,
|
||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||
size: 40.0,
|
||||
),
|
||||
onPressed: _model.person!
|
||||
? null
|
||||
: () {
|
||||
print('IconButton pressed ...');
|
||||
},
|
||||
),
|
||||
FlutterFlowIconButton(
|
||||
borderRadius: 20.0,
|
||||
borderWidth: 1.0,
|
||||
buttonSize: 40.0,
|
||||
fillColor: FlutterFlowTheme.of(context).primary,
|
||||
disabledColor: FlutterFlowTheme.of(context).alternate,
|
||||
disabledIconColor: FlutterFlowTheme.of(context).primary,
|
||||
icon: Icon(
|
||||
Icons.notifications_active,
|
||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||
size: 40.0,
|
||||
),
|
||||
onPressed: _model.notify!
|
||||
? null
|
||||
: () {
|
||||
print('IconButton pressed ...');
|
||||
},
|
||||
),
|
||||
FlutterFlowIconButton(
|
||||
borderRadius: 20.0,
|
||||
borderWidth: 1.0,
|
||||
buttonSize: 40.0,
|
||||
fillColor: FlutterFlowTheme.of(context).primary,
|
||||
disabledColor: FlutterFlowTheme.of(context).alternate,
|
||||
disabledIconColor: FlutterFlowTheme.of(context).primary,
|
||||
icon: Icon(
|
||||
Icons.password_sharp,
|
||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||
size: 40.0,
|
||||
),
|
||||
onPressed: _model.changPass!
|
||||
? null
|
||||
: () {
|
||||
print('IconButton pressed ...');
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
import '/flutter_flow/flutter_flow_util.dart';
|
||||
import 'settings_page_widget.dart' show SettingsPageWidget;
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class SettingsPageModel extends FlutterFlowModel<SettingsPageWidget> {
|
||||
/// State fields for stateful widgets in this page.
|
||||
|
||||
final unfocusNode = FocusNode();
|
||||
|
||||
@override
|
||||
void initState(BuildContext context) {}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
unfocusNode.dispose();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
import '/flutter_flow/flutter_flow_theme.dart';
|
||||
import '/flutter_flow/flutter_flow_util.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'settings_page_model.dart';
|
||||
export 'settings_page_model.dart';
|
||||
|
||||
class SettingsPageWidget extends StatefulWidget {
|
||||
const SettingsPageWidget({super.key});
|
||||
|
||||
@override
|
||||
State<SettingsPageWidget> createState() => _SettingsPageWidgetState();
|
||||
}
|
||||
|
||||
class _SettingsPageWidgetState extends State<SettingsPageWidget> {
|
||||
late SettingsPageModel _model;
|
||||
|
||||
final scaffoldKey = GlobalKey<ScaffoldState>();
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_model = createModel(context, () => SettingsPageModel());
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
_model.dispose();
|
||||
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return GestureDetector(
|
||||
onTap: () => _model.unfocusNode.canRequestFocus
|
||||
? FocusScope.of(context).requestFocus(_model.unfocusNode)
|
||||
: FocusScope.of(context).unfocus(),
|
||||
child: Scaffold(
|
||||
key: scaffoldKey,
|
||||
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
|
||||
appBar: AppBar(
|
||||
backgroundColor: FlutterFlowTheme.of(context).primary,
|
||||
automaticallyImplyLeading: false,
|
||||
title: Text(
|
||||
FFLocalizations.of(context).getText(
|
||||
'bc698859' /* Preferencias */,
|
||||
),
|
||||
style: FlutterFlowTheme.of(context).headlineMedium.override(
|
||||
fontFamily: 'Nunito',
|
||||
color: FlutterFlowTheme.of(context).primaryText,
|
||||
fontSize: 17.0,
|
||||
letterSpacing: 0.0,
|
||||
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
|
||||
),
|
||||
),
|
||||
actions: const [],
|
||||
centerTitle: true,
|
||||
elevation: 0.0,
|
||||
),
|
||||
body: const SafeArea(
|
||||
top: true,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue