From bd9b18c2bf773195943b2f4a903277489ea1e077 Mon Sep 17 00:00:00 2001 From: Branden Taylor Date: Mon, 1 Jul 2019 11:37:27 -0700 Subject: [PATCH] Secondpage Add-ons (#100) --- isolate_example/lib/page_two.dart | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/isolate_example/lib/page_two.dart b/isolate_example/lib/page_two.dart index 20c8a910c..07779ba17 100644 --- a/isolate_example/lib/page_two.dart +++ b/isolate_example/lib/page_two.dart @@ -35,6 +35,13 @@ class InfiniteProcessPage extends StatelessWidget { return Column( mainAxisSize: MainAxisSize.min, children: [ + Padding( + child: Text( + 'Summation Results', + style: Theme.of(context).textTheme.title, + ), + padding: new EdgeInsets.all(8), + ), Expanded(child: RunningList()), SafeArea( child: Column( @@ -157,17 +164,27 @@ class RunningList extends StatelessWidget { return DecoratedBox( decoration: BoxDecoration( - color: (controller.running == true && controller.paused == false) - ? Colors.lightGreenAccent - : Colors.deepOrangeAccent, + color: Colors.grey[200], ), child: new ListView.builder( itemCount: sums.length, itemBuilder: (context, index) { - return ListTile( - title: Text((sums.length - index).toString() + - '. ' + - sums[index].toString()), + return Column( + children: [ + Card( + child: ListTile( + leading: Text('${sums.length - index}.'), + title: Text('${sums[index]}.'), + ), + color: (controller.running && !controller.paused) + ? Colors.lightGreenAccent + : Colors.deepOrangeAccent, + ), + Divider( + color: Colors.blue, + height: 3, + ), + ], ); }, ),