我靠有地雷女
This commit is contained in:
1 parent
087e24f786
commit
a616aa610a
2 files changed
+20
-21
No files matched your search
+19
-18
@@ -199,26 +199,26 @@ class _HomePageState extends State<HomePage> {
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
|
||||
return Scaffold(
|
||||
return PopScope(
|
||||
canPop: !_loggingOut,
|
||||
onPopInvokedWithResult: (didPop, _) {
|
||||
if (!didPop && !_loggingOut) {
|
||||
_performLogoutAndExit();
|
||||
}
|
||||
},
|
||||
child: Scaffold(
|
||||
appBar: AppBar(
|
||||
leading: IconButton(
|
||||
icon: _loggingOut
|
||||
? const SizedBox(
|
||||
width: 20,
|
||||
height: 20,
|
||||
child: CircularProgressIndicator(strokeWidth: 2),
|
||||
)
|
||||
: const Icon(Icons.arrow_back),
|
||||
onPressed: _loggingOut ? null : _performLogoutAndExit,
|
||||
),
|
||||
title: Text(_tabTitles[_currentTab]),
|
||||
actions: [
|
||||
if (_loggingOut)
|
||||
const Padding(
|
||||
padding: EdgeInsets.only(right: 12),
|
||||
child: SizedBox(
|
||||
width: 20,
|
||||
height: 20,
|
||||
child: CircularProgressIndicator(strokeWidth: 2),
|
||||
),
|
||||
)
|
||||
else
|
||||
IconButton(
|
||||
icon: const Icon(Icons.logout),
|
||||
tooltip: AppStrings.logoutTooltip,
|
||||
onPressed: _performLogoutAndExit,
|
||||
),
|
||||
],
|
||||
),
|
||||
body: IndexedStack(
|
||||
index: _currentTab,
|
||||
@@ -253,6 +253,7 @@ class _HomePageState extends State<HomePage> {
|
||||
NavigationDestination(icon: Icon(Icons.info_outlined), selectedIcon: Icon(Icons.info), label: AppStrings.tabAbout),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,12 +42,10 @@ class TicketPage extends StatefulWidget {
|
||||
|
||||
class _TicketPageState extends State<TicketPage> {
|
||||
static const _ticketNameMap = {
|
||||
1: '功能票',
|
||||
2: '2倍功能票',
|
||||
3: '3倍功能票',
|
||||
4: '4倍功能票',
|
||||
5: '5倍功能票',
|
||||
6: '6倍功能票',
|
||||
5: '5倍功能票'
|
||||
};
|
||||
|
||||
TicketStep _step = TicketStep.idle;
|
||||
|
||||
Reference in new issue
Block a user