1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00

Secondpage Add-ons (#100)

This commit is contained in:
Branden Taylor
2019-07-01 11:37:27 -07:00
committed by Andrew Brogdon
parent 4646f0fc8e
commit bd9b18c2bf

View File

@@ -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,
),
],
); );
}, },
), ),