From 8d711ae8ee1c4ffeda84c6d7391146f095dcfc5c Mon Sep 17 00:00:00 2001 From: Ryunosuke Muramatsu Date: Sun, 5 Nov 2023 11:17:24 +0900 Subject: [PATCH] Refactored main.dart to use a Column widget for better layout. --- .../example/lib/main.dart | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/packages/flutterfire_remote_parameter_fetcher/example/lib/main.dart b/packages/flutterfire_remote_parameter_fetcher/example/lib/main.dart index f8d67e9..9de54b5 100644 --- a/packages/flutterfire_remote_parameter_fetcher/example/lib/main.dart +++ b/packages/flutterfire_remote_parameter_fetcher/example/lib/main.dart @@ -55,18 +55,22 @@ class _MainAppState extends State { 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'), + ), + ], + ), ), ), );