Skip to content

Commit

Permalink
homepage: fix overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Sep 12, 2024
1 parent 962f300 commit f1e4af7
Showing 1 changed file with 63 additions and 60 deletions.
123 changes: 63 additions & 60 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,66 +69,69 @@ class _MyHomePageState extends State<MyHomePage> {
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const DefectsScreen()),
);
},
child: const Text('Defects Test'),
),
ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const NestingScreen()),
);
},
child: const Text('Nesting Test'),
),
ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const SwipingScreen()),
);
},
child: const Text('Swipe Test'),
),
ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const FormScreen()),
);
},
child: const Text('Form Test'),
),
ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const Issue1677Repro()),
);
},
child: const Text('issue 1677 repro'),
),
ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const Issue1619Repro()),
);
},
child: const Text('issue 1619 repro'),
),
const Text(
'You have pushed the button this many times',
),
Text(
'$_counter',
style: Theme.of(context).textTheme.headlineMedium,
),
],
body: SingleChildScrollView(
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const DefectsScreen()),
);
},
child: const Text('Defects Test'),
),
ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const NestingScreen()),
);
},
child: const Text('Nesting Test'),
),
ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const SwipingScreen()),
);
},
child: const Text('Swipe Test'),
),
ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const FormScreen()),
);
},
child: const Text('Form Test'),
),
ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const Issue1677Repro()),
);
},
child: const Text('issue 1677 repro'),
),
ElevatedButton(
onPressed: () {
Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const Issue1619Repro()),
);
},
child: const Text('issue 1619 repro'),
),
const Text(
'You have pushed the button this many times',
),
Text(
'$_counter',
style: Theme.of(context).textTheme.headlineMedium,
),
],
),
),
),
floatingActionButton: Semantics(
Expand Down

0 comments on commit f1e4af7

Please sign in to comment.