fix login on guest

This commit is contained in:
Patrick Alvin Alcala 2025-04-02 13:27:34 +08:00
parent 93c141a779
commit 2decbc43e5
4 changed files with 35 additions and 24 deletions

View file

@ -156,25 +156,23 @@ class _CustomerSettingsPageState extends State<CustomerSettingsPage> {
],
)
else
Column(
children: [
const Gap(68),
const CustomerTitleWidget(),
const Gap(32),
const TextWidget(text: 'Mga Setting'),
const Gap(16),
SettingWidget(
icon: Icons.language, title: 'Pinulongan', value: currentLanguage, onPressed: () => gotoSettings()),
const Gap(8),
SettingWidget(
icon: Icons.person,
title: 'Ngalan',
value: _isGuest ? 'Guest' : currentName,
),
const Gap(32),
ButtonWidget(text: 'Log Out', onPressed: _signOut)
],
)
Column(children: [
const Gap(68),
const CustomerTitleWidget(),
const Gap(32),
const TextWidget(text: 'Mga Setting'),
const Gap(16),
SettingWidget(
icon: Icons.language, title: 'Pinulongan', value: currentLanguage, onPressed: () => gotoSettings()),
const Gap(8),
SettingWidget(
icon: Icons.person,
title: 'Ngalan',
value: _isGuest ? 'Guest' : currentName,
),
const Gap(32),
ButtonWidget(text: 'Log Outss', onPressed: _signOut),
])
],
)));
}