Skip to content

Commit 33f3119

Browse files
committed
some errors handled
1 parent 2e2f434 commit 33f3119

File tree

6 files changed

+3
-40
lines changed

6 files changed

+3
-40
lines changed

lib/main.dart

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ void main() async {
88
runApp(
99
new MaterialApp(
1010
title: "Codeforces",
11+
debugShowCheckedModeBanner: false,
1112
home: Home(),
1213
),
1314
);

lib/ui/compare.dart

-6
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ class Compare extends StatelessWidget {
7575
"assets/images/cf.png",
7676
height: 30.0,
7777
),
78-
actions: [
79-
IconButton(
80-
icon: Icon(Icons.menu),
81-
color: Colors.black,
82-
)
83-
],
8478
),
8579
body: new ListView(
8680
children: <Widget>[

lib/ui/home.dart

+1-13
Original file line numberDiff line numberDiff line change
@@ -246,26 +246,14 @@ class HomeState extends State {
246246
height: 25.0,
247247
),
248248
actions: [
249-
IconButton(
250-
icon: Icon(
251-
Icons.menu,
252-
color: Colors.black,
253-
),
254-
onPressed: null)
255249
],
256250
),
257251
body: new FutureBuilder(
258252
future: contestInfo(),
259253
builder: (BuildContext context, AsyncSnapshot snapshot) {
260254
if (snapshot.data == null) {
261255
return Center(
262-
child: Text(
263-
"Loading data.......",
264-
style: TextStyle(
265-
color: Colors.green,
266-
fontSize: 25.0,
267-
),
268-
),
256+
child: CircularProgressIndicator(),
269257
);
270258
} else {
271259
return ListView.builder(

lib/ui/output.txt

Whitespace-only changes.

lib/ui/previous_contests.dart

+1-15
Original file line numberDiff line numberDiff line change
@@ -130,26 +130,12 @@ class PreviousContestsState extends State {
130130
height: 25.0,
131131
// width: 20.0,
132132
),
133-
actions: [
134-
IconButton(
135-
icon: Icon(Icons.menu),
136-
color: Colors.black,
137-
)
138-
],
139133
),
140134
body: new FutureBuilder(
141135
future: contestInfo(),
142136
builder: (BuildContext context, AsyncSnapshot snapshot) {
143137
if (snapshot.data == null) {
144-
return Center(
145-
child: Text(
146-
"Loading data.......",
147-
style: TextStyle(
148-
color: Colors.green,
149-
fontSize: 25.0,
150-
),
151-
),
152-
);
138+
return Center(child: CircularProgressIndicator());
153139
} else {
154140
return ListView.builder(
155141
itemCount: snapshot.data['result'].length,

lib/ui/user.dart

-6
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,6 @@ class User extends StatelessWidget {
140140
"assets/images/cf.png",
141141
height: 25.0,
142142
),
143-
actions: [
144-
IconButton(
145-
icon: Icon(Icons.menu),
146-
color: Colors.black,
147-
)
148-
],
149143
),
150144
body: new ListView(
151145
physics: ScrollPhysics(),

0 commit comments

Comments
 (0)