mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Beta (#1234)
This commit is contained in:
@@ -58,14 +58,14 @@ class InfiniteProcessPage extends StatelessWidget {
|
||||
alignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
ElevatedButton(
|
||||
child: const Text('Start'),
|
||||
style: ElevatedButton.styleFrom(elevation: 8.0),
|
||||
onPressed: () => controller.start(),
|
||||
child: const Text('Start'),
|
||||
),
|
||||
ElevatedButton(
|
||||
child: const Text('Terminate'),
|
||||
style: ElevatedButton.styleFrom(elevation: 8.0),
|
||||
onPressed: () => controller.terminate(),
|
||||
child: const Text('Terminate'),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -205,13 +205,13 @@ class RunningList extends StatelessWidget {
|
||||
return Column(
|
||||
children: [
|
||||
Card(
|
||||
color: (controller.created && !controller.paused)
|
||||
? Colors.lightGreenAccent
|
||||
: Colors.deepOrangeAccent,
|
||||
child: ListTile(
|
||||
leading: Text('${sums.length - index}.'),
|
||||
title: Text('${sums[index]}.'),
|
||||
),
|
||||
color: (controller.created && !controller.paused)
|
||||
? Colors.lightGreenAccent
|
||||
: Colors.deepOrangeAccent,
|
||||
),
|
||||
const Divider(
|
||||
color: Colors.blue,
|
||||
|
||||
Reference in New Issue
Block a user