feat(ui_kit): update example with drawer and custom launch parameters

This commit is contained in:
2023-02-14 12:50:46 +01:00
parent 82eeba4d7d
commit c942e2aacf
8 changed files with 118 additions and 65 deletions
@@ -36,38 +36,43 @@ class Buttons extends StatelessWidget {
const Buttons({super.key});
@override
Widget build(BuildContext context) => Column(
Widget build(BuildContext context) => ListView(
children: [
Text(
'Buttons',
style: Theme.of(context).textTheme.titleLarge,
const Gap(20),
Align(
child: Text(
'Buttons',
style: Theme.of(context).textTheme.titleLarge,
),
),
const Gap(20),
FlatButton(
label: const TextWrapper('Voir notre savoir faire'),
normalStyle: const FlatButtonStyle(
foregroundColors: MultiColor(_colors),
backgroundColors: MultiColor.single(Colors.transparent),
borderColors: MultiColor(_colors),
stroke: 3,
),
hoveredStyle: const FlatButtonStyle(
foregroundColors: MultiColor.single(Colors.white),
backgroundColors: MultiColor(_colors),
borderColors: MultiColor(_colors),
stroke: 3,
),
tappedStyle: const FlatButtonStyle(
foregroundColors: MultiColor.single(Colors.white),
backgroundColors: MultiColor(_colorsDarken),
borderColors: MultiColor(_colorsDarken),
stroke: 3,
),
prefix: const Icon(
Icons.arrow_forward_rounded,
),
suffix: const Icon(
Icons.arrow_forward_rounded,
Center(
child: FlatButton(
label: const TextWrapper('Voir notre savoir faire'),
normalStyle: const FlatButtonStyle(
foregroundColors: MultiColor(_colors),
backgroundColors: MultiColor.single(Colors.transparent),
borderColors: MultiColor(_colors),
stroke: 3,
),
hoveredStyle: const FlatButtonStyle(
foregroundColors: MultiColor.single(Colors.white),
backgroundColors: MultiColor(_colors),
borderColors: MultiColor(_colors),
stroke: 3,
),
tappedStyle: const FlatButtonStyle(
foregroundColors: MultiColor.single(Colors.white),
backgroundColors: MultiColor(_colorsDarken),
borderColors: MultiColor(_colorsDarken),
stroke: 3,
),
prefix: const Icon(
Icons.arrow_forward_rounded,
),
suffix: const Icon(
Icons.arrow_forward_rounded,
),
),
),
const Gap(20),