|
|
|
@ -25,49 +25,53 @@ import '../state.dart';
|
|
|
|
|
import '../config.dart' as config;
|
|
|
|
|
|
|
|
|
|
Widget build(BuildContext context, ReSyncingState state) {
|
|
|
|
|
return Scaffold
|
|
|
|
|
(
|
|
|
|
|
// appBar: AppBar
|
|
|
|
|
// (
|
|
|
|
|
// // title: Text(widget.title),
|
|
|
|
|
// title: Text('CyberWOW'),
|
|
|
|
|
// ),
|
|
|
|
|
body: Container
|
|
|
|
|
(
|
|
|
|
|
// padding: const EdgeInsets.all(10.0),
|
|
|
|
|
child: Align
|
|
|
|
|
(
|
|
|
|
|
alignment: Alignment.topLeft,
|
|
|
|
|
child: Column
|
|
|
|
|
(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
children: <Widget>
|
|
|
|
|
final progressWidget =
|
|
|
|
|
[
|
|
|
|
|
Spacer
|
|
|
|
|
(
|
|
|
|
|
flex: 1,
|
|
|
|
|
flex: 3,
|
|
|
|
|
),
|
|
|
|
|
Expanded
|
|
|
|
|
LinearProgressIndicator(),
|
|
|
|
|
Spacer
|
|
|
|
|
(
|
|
|
|
|
flex: 1,
|
|
|
|
|
child: SingleChildScrollView
|
|
|
|
|
flex: 2,
|
|
|
|
|
),
|
|
|
|
|
Expanded
|
|
|
|
|
(
|
|
|
|
|
scrollDirection: Axis.vertical,
|
|
|
|
|
reverse: true,
|
|
|
|
|
flex: 5,
|
|
|
|
|
child: Text
|
|
|
|
|
(
|
|
|
|
|
state.stdout.last,
|
|
|
|
|
style: Theme.of(context).textTheme.body1,
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
return Scaffold
|
|
|
|
|
(
|
|
|
|
|
body: Container
|
|
|
|
|
(
|
|
|
|
|
padding: const EdgeInsets.all(10.0),
|
|
|
|
|
child: Column
|
|
|
|
|
(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
|
|
|
children: <Widget>
|
|
|
|
|
[
|
|
|
|
|
Spacer
|
|
|
|
|
(
|
|
|
|
|
flex: 1,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
flex: 10,
|
|
|
|
|
),
|
|
|
|
|
] +
|
|
|
|
|
progressWidget +
|
|
|
|
|
[
|
|
|
|
|
Spacer
|
|
|
|
|
(
|
|
|
|
|
flex: 10,
|
|
|
|
|
),
|
|
|
|
|
]
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|