From 1326bc6521f4bb4eb9b07d5f725aa89a15bfbf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemen=20Tu=C5=A1ar?= Date: Sun, 16 Jun 2024 10:19:17 +0100 Subject: [PATCH] refactor: examples/alice_chopper --- examples/alice_chopper/lib/main.dart | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/examples/alice_chopper/lib/main.dart b/examples/alice_chopper/lib/main.dart index 3aa357ed..c9681529 100644 --- a/examples/alice_chopper/lib/main.dart +++ b/examples/alice_chopper/lib/main.dart @@ -39,8 +39,7 @@ class _MyAppState extends State { showNotification: true, showInspectorOnShake: true, maxCallsCount: 1000, - ) - ..addAdapter(_aliceChopperAdapter); + )..addAdapter(_aliceChopperAdapter); late final ChopperClient _chopper = ChopperClient( baseUrl: Uri.https('jsonplaceholder.typicode.com'), @@ -71,14 +70,14 @@ class _MyAppState extends State { late final AlbumsService albumsService = _chopper.getService(); late final ArticlesService articlesService = - _chopper.getService(); + _chopper.getService(); late final CommentsService commentsService = - _chopper.getService(); + _chopper.getService(); late final PhotosService photosService = _chopper.getService(); late final TodosService todosService = _chopper.getService(); late final UsersService usersService = _chopper.getService(); late final BrokenArticlesService brokenArticlesService = - _chopper.getService(); + _chopper.getService(); /// Albums HTTP requests Future _albumsRequests() async { @@ -458,8 +457,9 @@ class _MyAppState extends State { children: [ const SizedBox(height: 8), const Text( + style: TextStyle(fontSize: 14), 'Welcome to example of Alice Http Inspector. ' - 'Click buttons below to generate sample data.', + 'Click buttons below to generate sample data.', ), ElevatedButton( onPressed: _runChopperHttpRequests, @@ -467,10 +467,12 @@ class _MyAppState extends State { 'Run Chopper HTTP Requests', ), ), + const SizedBox(height: 8), const Text( + style: TextStyle(fontSize: 14), 'After clicking on buttons above, you should receive notification.' - ' Click on it to show inspector. ' - 'You can also shake your device or click button below.', + ' Click on it to show inspector. ' + 'You can also shake your device or click button below.', ), ElevatedButton( onPressed: _runHttpInspector,