Skip to content

Commit

Permalink
Updating to latest FlutterFlow output.
Browse files Browse the repository at this point in the history
  • Loading branch information
flutterflow-github-app[bot] authored Nov 18, 2022
1 parent 61e4708 commit 8f19064
Show file tree
Hide file tree
Showing 8 changed files with 528 additions and 795 deletions.
Binary file modified assets/images/app_launcher_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions lib/dashboard/dashboard_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ import 'package:google_fonts/google_fonts.dart';
import 'package:percent_indicator/percent_indicator.dart';

class DashboardWidget extends StatefulWidget {
const DashboardWidget({Key? key}) : super(key: key);
const DashboardWidget({
Key? key,
this.firstName,
}) : super(key: key);

final String? firstName;

@override
_DashboardWidgetState createState() => _DashboardWidgetState();
Expand Down Expand Up @@ -525,7 +530,7 @@ class _DashboardWidgetState extends State<DashboardWidget> {
),
Padding(
padding: EdgeInsetsDirectional.fromSTEB(
16, 16, 8, 16),
16, 8, 8, 16),
child: Container(
decoration: BoxDecoration(
color:
Expand Down
4 changes: 3 additions & 1 deletion lib/flutter_flow/nav/nav.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ GoRouter createRouter(AppStateNotifier appStateNotifier) => GoRouter(
requireAuth: true,
builder: (context, params) => params.isEmpty
? NavBarPage(initialPage: 'Dashboard')
: DashboardWidget(),
: DashboardWidget(
firstName: params.getParam('firstName', ParamType.String),
),
),
FFRoute(
name: 'Reservations',
Expand Down
16 changes: 13 additions & 3 deletions lib/main_login/main_login_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ class _MainLoginWidgetState extends State<MainLoginWidget> {
controller: emailAddressController,
obscureText: false,
decoration: InputDecoration(
labelText: 'Your email address...',
labelText: 'E-mail address...',
labelStyle:
FlutterFlowTheme.of(context).bodyText2,
hintText: 'Enter your email...',
hintText: 'Please enter your email...',
hintStyle: FlutterFlowTheme.of(context)
.bodyText1
.override(
Expand Down Expand Up @@ -339,7 +339,17 @@ class _MainLoginWidgetState extends State<MainLoginWidget> {
return;
}

context.goNamedAuth('Dashboard', mounted);
context.pushNamedAuth(
'Dashboard',
mounted,
queryParams: {
'firstName': serializeParam(
valueOrDefault(
currentUserDocument?.firstName, ''),
ParamType.String,
),
}.withoutNulls,
);
},
text: 'Login',
icon: Icon(
Expand Down
544 changes: 272 additions & 272 deletions lib/new_order/new_order_widget.dart

Large diffs are not rendered by default.

708 changes: 232 additions & 476 deletions lib/order_summary/order_summary_widget.dart

Large diffs are not rendered by default.

40 changes: 0 additions & 40 deletions lib/p_i_n_login/p_i_n_login_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -353,46 +353,6 @@ class _PINLoginWidgetState extends State<PINLoginWidget>
),
),
),
Padding(
padding: EdgeInsetsDirectional.fromSTEB(
0, 0, 0, 24),
child: FFButtonWidget(
onPressed: () async {
context.pushNamed(
'mainLogin',
extra: <String, dynamic>{
kTransitionInfoKey:
TransitionInfo(
hasTransition: true,
transitionType:
PageTransitionType.fade,
),
},
);
},
text: 'First Time User',
icon: Icon(
Icons.accessibility_new_rounded,
size: 20,
),
options: FFButtonOptions(
width: 175,
height: 40,
color: FlutterFlowTheme.of(context)
.secondaryColor,
textStyle:
FlutterFlowTheme.of(context)
.bodyText1,
elevation: 2,
borderSide: BorderSide(
color: Colors.transparent,
width: 1,
),
borderRadius:
BorderRadius.circular(8),
),
),
),
Padding(
padding: EdgeInsetsDirectional.fromSTEB(
0, 0, 0, 24),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.12+1
version: 1.0.15+1

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down

0 comments on commit 8f19064

Please sign in to comment.