mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-24 01:36:38 +00:00
refactor(ui): Update the ProgressDrawer style
This commit is contained in:
parent
657ff44979
commit
3dce7c8f49
|
@ -25,39 +25,44 @@ class ProgressDrawer extends StatelessWidget {
|
||||||
width: 300,
|
width: 300,
|
||||||
height: constraints.maxHeight,
|
height: constraints.maxHeight,
|
||||||
child: Drawer(
|
child: Drawer(
|
||||||
child: Column(
|
child: SafeArea(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
child: Padding(
|
||||||
children: [
|
padding: const EdgeInsets.all(12.0),
|
||||||
Padding(
|
child: Column(
|
||||||
padding: const EdgeInsets.all(16.0),
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
child: Text(
|
children: [
|
||||||
title,
|
Padding(
|
||||||
style: Theme.of(context).textTheme.titleLarge,
|
padding: const EdgeInsets.fromLTRB(16.0, 8.0, 8.0, 8.0),
|
||||||
),
|
child: Text(
|
||||||
),
|
title,
|
||||||
Flexible(
|
style: Theme.of(context).textTheme.titleLarge,
|
||||||
fit: FlexFit.tight,
|
),
|
||||||
child: SingleChildScrollView(
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
...steps.map((final step) {
|
|
||||||
final index = steps.indexOf(step);
|
|
||||||
return _StepIndicator(
|
|
||||||
title: step.tr(),
|
|
||||||
isCurrent: index == currentStep,
|
|
||||||
isCompleted: index < currentStep,
|
|
||||||
);
|
|
||||||
}),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
Flexible(
|
||||||
|
fit: FlexFit.tight,
|
||||||
|
child: SingleChildScrollView(
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
...steps.map((final step) {
|
||||||
|
final index = steps.indexOf(step);
|
||||||
|
return _StepIndicator(
|
||||||
|
title: step.tr(),
|
||||||
|
isCurrent: index == currentStep,
|
||||||
|
isCompleted: index < currentStep,
|
||||||
|
);
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// const Spacer(),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(top: 8.0),
|
||||||
|
child: trailing,
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
// const Spacer(),
|
),
|
||||||
Padding(
|
|
||||||
padding: const EdgeInsets.all(16.0),
|
|
||||||
child: trailing,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue