Skip to content

Commit

Permalink
refactor: add const constructors where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed Jun 9, 2024
1 parent 15c317f commit 17a6c07
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions examples/alice_chopper/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,27 @@ class _MyAppState extends State<MyApp> {
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,
)
],
Expand Down

0 comments on commit 17a6c07

Please sign in to comment.