From 17a6c07d5d49285c5b6c414d82eded747f34134b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemen=20Tu=C5=A1ar?= Date: Sun, 9 Jun 2024 10:27:05 +0100 Subject: [PATCH] refactor: add const constructors where possible --- examples/alice_chopper/lib/main.dart | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/examples/alice_chopper/lib/main.dart b/examples/alice_chopper/lib/main.dart index 2b078f5f..8ad94560 100644 --- a/examples/alice_chopper/lib/main.dart +++ b/examples/alice_chopper/lib/main.dart @@ -77,25 +77,27 @@ class _MyAppState extends State { title: const Text('Alice + Chopper - Example'), ), body: Container( - padding: EdgeInsets.all(16), + padding: const EdgeInsets.all(16), child: ListView( children: [ const SizedBox(height: 8), - Text( - 'Welcome to example of Alice Http Inspector. Click buttons below to generate sample data.', + const Text( + 'Welcome to example of Alice Http Inspector. ' + 'Click buttons below to generate sample data.', ), ElevatedButton( - child: Text( + child: const Text( 'Run Chopper HTTP Requests', ), onPressed: _runChopperHttpRequests, ), - Text( + const Text( '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( - child: Text('Run HTTP Inspector'), + child: const Text('Run HTTP Inspector'), onPressed: _runHttpInspector, ) ],