Secondpage Add-ons (#100)

pull/103/head
Branden Taylor 6 years ago committed by Andrew Brogdon
parent 4646f0fc8e
commit bd9b18c2bf

@ -35,6 +35,13 @@ class InfiniteProcessPage extends StatelessWidget {
return Column( return Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
Padding(
child: Text(
'Summation Results',
style: Theme.of(context).textTheme.title,
),
padding: new EdgeInsets.all(8),
),
Expanded(child: RunningList()), Expanded(child: RunningList()),
SafeArea( SafeArea(
child: Column( child: Column(
@ -157,17 +164,27 @@ class RunningList extends StatelessWidget {
return DecoratedBox( return DecoratedBox(
decoration: BoxDecoration( decoration: BoxDecoration(
color: (controller.running == true && controller.paused == false) color: Colors.grey[200],
? Colors.lightGreenAccent
: Colors.deepOrangeAccent,
), ),
child: new ListView.builder( child: new ListView.builder(
itemCount: sums.length, itemCount: sums.length,
itemBuilder: (context, index) { itemBuilder: (context, index) {
return ListTile( return Column(
title: Text((sums.length - index).toString() + children: [
'. ' + Card(
sums[index].toString()), 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,
),
],
); );
}, },
), ),

Loading…
Cancel
Save