Skip to content

Commit

Permalink
Updating to latest FlutterFlow output.
Browse files Browse the repository at this point in the history
  • Loading branch information
FlutterFlowEng committed Feb 22, 2024
1 parent fc8015d commit 4d70747
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
7 changes: 6 additions & 1 deletion lib/authenticated/home/home_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,12 @@ class _HomeWidgetState extends State<HomeWidget> with TickerProviderStateMixin {
CrossAxisAlignment.start,
children: [
Text(
'Hello ${FFAppState().user.nickname}',
'Hello ${valueOrDefault<String>(
FFAppState()
.user
.nickname,
'User',
)}',
style: FlutterFlowTheme.of(
context)
.bodyLarge
Expand Down
8 changes: 4 additions & 4 deletions lib/authenticated/item_info/item_info_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -394,14 +394,14 @@ class _ItemInfoWidgetState extends State<ItemInfoWidget> {
context: context,
builder: (alertDialogContext) {
return AlertDialog(
title: Text('ข้อผิดพลาด'),
content:
Text('โปรดอัพโหลดรูปภาพ หรือ เลือกจากคลังภาพ'),
title: Text('Error'),
content: Text(
'Please upload a photo or select from the photo gallery.'),
actions: [
TextButton(
onPressed: () =>
Navigator.pop(alertDialogContext),
child: Text('ตกลง'),
child: Text('ok'),
),
],
);
Expand Down
8 changes: 4 additions & 4 deletions lib/authenticated/setting/setting_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -880,23 +880,23 @@ class _SettingWidgetState extends State<SettingWidget>
context: context,
builder: (alertDialogContext) {
return AlertDialog(
title: Text('ลงชื่อออก'),
title: Text('Sign out'),
content: Text(
'คุณกำลังลงชื่อออก แน่ใช่หรือไม่'),
'You are signing out Are you sure?'),
actions: [
TextButton(
onPressed: () =>
Navigator.pop(
alertDialogContext,
false),
child: Text('ไม่'),
child: Text('no'),
),
TextButton(
onPressed: () =>
Navigator.pop(
alertDialogContext,
true),
child: Text('ใช่'),
child: Text('yes'),
),
],
);
Expand Down

0 comments on commit 4d70747

Please sign in to comment.