Skip to content

Commit

Permalink
Refactored main.dart to use a Column widget for
Browse files Browse the repository at this point in the history
better layout.
  • Loading branch information
riscait committed Nov 5, 2023
1 parent 7ed9345 commit 8d711ae
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions packages/flutterfire_remote_parameter_fetcher/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,22 @@ class _MainAppState extends State<MainApp> {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('FlutterFireRemoteParameterFetcher')),
body: ListView(
padding: const EdgeInsets.all(16),
children: [
Text('RemoteParameter value: $_intParameterValue'),
const SizedBox(height: 16),
FilledButton(
onPressed: () async {
await _intRemoteParameter.activateAndRefetch();
},
child: const Text('Activate and refetch'),
),
],
body: Padding(
padding: const EdgeInsets.all(32),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Text('RemoteParameter value: $_intParameterValue'),
const SizedBox(height: 16),
FilledButton(
onPressed: () async {
await _intRemoteParameter.activateAndRefetch();
},
child: const Text('Activate and refetch'),
),
],
),
),
),
);
Expand Down

0 comments on commit 8d711ae

Please sign in to comment.