Updated lock icon
This commit is contained in:
@@ -74,21 +74,22 @@ class _RoundViewState extends State<RoundView> {
|
|||||||
return CupertinoPageScaffold(
|
return CupertinoPageScaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
navigationBar: CupertinoNavigationBar(
|
navigationBar: CupertinoNavigationBar(
|
||||||
transitionBetweenRoutes: true,
|
transitionBetweenRoutes: true,
|
||||||
leading: CupertinoButton(
|
leading: CupertinoButton(
|
||||||
padding: EdgeInsets.zero,
|
padding: EdgeInsets.zero,
|
||||||
onPressed: () =>
|
onPressed: () => {
|
||||||
{LocalStorageService.saveGameSessions(), Navigator.pop(context)},
|
LocalStorageService.saveGameSessions(),
|
||||||
child: Text(AppLocalizations.of(context).cancel),
|
Navigator.pop(context)
|
||||||
),
|
},
|
||||||
middle: Text(AppLocalizations.of(context).results),
|
child: Text(AppLocalizations.of(context).cancel),
|
||||||
trailing: widget.gameSession.isGameFinished
|
),
|
||||||
? const Icon(
|
middle: Text(AppLocalizations.of(context).results),
|
||||||
|
trailing: Visibility(
|
||||||
|
visible: widget.gameSession.isGameFinished,
|
||||||
|
child: const Icon(
|
||||||
CupertinoIcons.lock,
|
CupertinoIcons.lock,
|
||||||
size: 25,
|
size: 25,
|
||||||
)
|
))),
|
||||||
: null,
|
|
||||||
),
|
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Positioned.fill(
|
Positioned.fill(
|
||||||
@@ -155,14 +156,25 @@ class _RoundViewState extends State<RoundView> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Center(
|
Center(
|
||||||
|
heightFactor: 1,
|
||||||
child: CupertinoButton(
|
child: CupertinoButton(
|
||||||
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 15, vertical: 0),
|
||||||
|
borderRadius: BorderRadius.circular(12),
|
||||||
|
color: CupertinoColors.systemRed,
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
if (await _showKamikazeSheet(context)) {
|
if (await _showKamikazeSheet(context)) {
|
||||||
if (!context.mounted) return;
|
if (!context.mounted) return;
|
||||||
_endOfRoundNavigation(context, true);
|
_endOfRoundNavigation(context, true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Text(AppLocalizations.of(context).kamikaze),
|
child: Text(
|
||||||
|
AppLocalizations.of(context).kamikaze,
|
||||||
|
style: const TextStyle(
|
||||||
|
color: CupertinoColors.white,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
|
|||||||
Reference in New Issue
Block a user