💄 Optimize leveling page
This commit is contained in:
@@ -148,7 +148,6 @@ class LevelingScreen extends HookConsumerWidget {
|
|||||||
return Center(
|
return Center(
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 20),
|
padding: const EdgeInsets.symmetric(horizontal: 20),
|
||||||
constraints: const BoxConstraints(maxWidth: 480),
|
|
||||||
child: CustomScrollView(
|
child: CustomScrollView(
|
||||||
slivers: [
|
slivers: [
|
||||||
const SliverGap(20),
|
const SliverGap(20),
|
||||||
@@ -180,6 +179,12 @@ class LevelingScreen extends HookConsumerWidget {
|
|||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
|
Text(
|
||||||
|
'${'levelingProgressLevel'.tr(args: [currentLevel.toString()])} / 120',
|
||||||
|
textAlign: TextAlign.start,
|
||||||
|
style: Theme.of(context).textTheme.bodySmall,
|
||||||
|
),
|
||||||
|
const Gap(8),
|
||||||
LinearProgressIndicator(
|
LinearProgressIndicator(
|
||||||
value: currentLevel / 120,
|
value: currentLevel / 120,
|
||||||
minHeight: 10,
|
minHeight: 10,
|
||||||
@@ -190,12 +195,6 @@ class LevelingScreen extends HookConsumerWidget {
|
|||||||
Theme.of(context).colorScheme.surfaceContainerHigh,
|
Theme.of(context).colorScheme.surfaceContainerHigh,
|
||||||
borderRadius: BorderRadius.circular(32),
|
borderRadius: BorderRadius.circular(32),
|
||||||
),
|
),
|
||||||
const Gap(8),
|
|
||||||
Text(
|
|
||||||
'${'levelingProgressLevel'.tr(args: [currentLevel.toString()])} / 120',
|
|
||||||
textAlign: TextAlign.right,
|
|
||||||
style: Theme.of(context).textTheme.bodySmall,
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
).padding(horizontal: 16, top: 16, bottom: 12),
|
).padding(horizontal: 16, top: 16, bottom: 12),
|
||||||
),
|
),
|
||||||
@@ -272,9 +271,6 @@ class LevelingScreen extends HookConsumerWidget {
|
|||||||
|
|
||||||
return SingleChildScrollView(
|
return SingleChildScrollView(
|
||||||
padding: getTabbedPadding(context, horizontal: 20, vertical: 20),
|
padding: getTabbedPadding(context, horizontal: 20, vertical: 20),
|
||||||
child: Center(
|
|
||||||
child: ConstrainedBox(
|
|
||||||
constraints: const BoxConstraints(maxWidth: 480),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
@@ -282,8 +278,6 @@ class LevelingScreen extends HookConsumerWidget {
|
|||||||
const Gap(16),
|
const Gap(16),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user