mirror of
https://github.com/wownero/cyberwow.git
synced 2026-10-19 08:18:44 +02:00
new is not required in widgets
This commit is contained in:
@@ -26,7 +26,7 @@ import '../config.dart';
|
||||
|
||||
Widget buildBlank(BuildContext context, BlankState state) {
|
||||
return Scaffold(
|
||||
body: new Container
|
||||
body: Container
|
||||
(
|
||||
color: config.backgroundColor,
|
||||
),
|
||||
|
||||
@@ -30,7 +30,7 @@ Widget buildLoading(BuildContext context, LoadingState state) {
|
||||
// // title: Text(widget.title),
|
||||
// title: Text('WOW'),
|
||||
// ),
|
||||
body: new Container
|
||||
body: Container
|
||||
(
|
||||
padding: const EdgeInsets.all(10.0),
|
||||
color: config.backgroundColor,
|
||||
@@ -42,10 +42,10 @@ Widget buildLoading(BuildContext context, LoadingState state) {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>
|
||||
[
|
||||
new Expanded
|
||||
Expanded
|
||||
(
|
||||
flex: 1,
|
||||
child: new SingleChildScrollView
|
||||
child: SingleChildScrollView
|
||||
(
|
||||
child: Text
|
||||
(
|
||||
|
||||
@@ -32,7 +32,7 @@ Widget buildReSyncing(BuildContext context, ReSyncingState state) {
|
||||
// // title: Text(widget.title),
|
||||
// title: Text('CyberWOW'),
|
||||
// ),
|
||||
body: new Container
|
||||
body: Container
|
||||
(
|
||||
// padding: const EdgeInsets.all(10.0),
|
||||
color: config.backgroundColor,
|
||||
@@ -44,10 +44,10 @@ Widget buildReSyncing(BuildContext context, ReSyncingState state) {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>
|
||||
[
|
||||
new Expanded
|
||||
Expanded
|
||||
(
|
||||
flex: 1,
|
||||
child: new SingleChildScrollView
|
||||
child: SingleChildScrollView
|
||||
(
|
||||
scrollDirection: Axis.vertical,
|
||||
reverse: true,
|
||||
|
||||
@@ -27,7 +27,7 @@ import '../config.dart';
|
||||
Widget buildSynced(BuildContext context, SyncedState state) {
|
||||
return Scaffold(
|
||||
|
||||
body: new Container
|
||||
body: Container
|
||||
(
|
||||
padding: const EdgeInsets.all(10.0),
|
||||
color: config.backgroundColor,
|
||||
@@ -51,10 +51,10 @@ Widget buildSynced(BuildContext context, SyncedState state) {
|
||||
(
|
||||
flex: 7,
|
||||
),
|
||||
new Expanded
|
||||
Expanded
|
||||
(
|
||||
flex: 15,
|
||||
child: new SingleChildScrollView
|
||||
child: SingleChildScrollView
|
||||
(
|
||||
child: Text
|
||||
(
|
||||
|
||||
@@ -32,7 +32,7 @@ Widget buildSyncing(BuildContext context, SyncingState state) {
|
||||
// // title: Text(widget.title),
|
||||
// title: Text('CyberWOW'),
|
||||
// ),
|
||||
body: new Container
|
||||
body: Container
|
||||
(
|
||||
// padding: const EdgeInsets.all(10.0),
|
||||
color: config.backgroundColor,
|
||||
@@ -44,10 +44,10 @@ Widget buildSyncing(BuildContext context, SyncingState state) {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: <Widget>
|
||||
[
|
||||
new Expanded
|
||||
Expanded
|
||||
(
|
||||
flex: 1,
|
||||
child: new SingleChildScrollView
|
||||
child: SingleChildScrollView
|
||||
(
|
||||
scrollDirection: Axis.vertical,
|
||||
reverse: true,
|
||||
|
||||
Reference in New Issue
Block a user