Skip to content
This repository was archived by the owner on Jan 5, 2021. It is now read-only.

Commit 27e85cd

Browse files
author
Luis Correa
committed
progress dialog theme
1 parent ab98227 commit 27e85cd

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

lib/components/connected_form.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,14 @@ class _ConnectedFormState extends State<ConnectedForm> {
8383
pr = ProgressDialog(context, isDismissible: false);
8484

8585
pr.style(
86+
backgroundColor: Theme.of(context).dialogBackgroundColor,
8687
borderRadius: 0.0,
8788
progressWidget: Container(
89+
color: Theme.of(context).dialogBackgroundColor,
8890
padding: EdgeInsets.all(8.0),
8991
child: CircularProgressIndicator(),
9092
),
9193
messageTextStyle: TextStyle(
92-
color: Colors.black,
9394
fontSize: 19.0,
9495
),
9596
);

lib/components/login_form.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ class _LoginFormState extends State<LoginForm> {
2525
pr = ProgressDialog(context, isDismissible: false);
2626

2727
pr.style(
28+
backgroundColor: Theme.of(context).dialogBackgroundColor,
2829
borderRadius: 0.0,
2930
progressWidget: Container(
3031
padding: EdgeInsets.all(8.0),
3132
child: CircularProgressIndicator(),
3233
),
3334
messageTextStyle: TextStyle(
34-
color: Colors.black,
3535
fontSize: 19.0,
3636
),
3737
);
@@ -92,7 +92,7 @@ class _LoginFormState extends State<LoginForm> {
9292
padding: EdgeInsets.all(10.0),
9393
child: MaterialButton(
9494
elevation: 0.5,
95-
color: Theme.of(context).focusColor,
95+
color: Colors.blue,
9696
minWidth: MediaQuery.of(context).size.width,
9797
child: Text(
9898
'Conectar',

lib/pages/connected_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class _ConnectedPageState extends State<ConnectedPage> {
3434
children: <Widget>[
3535
Container(
3636
height: 80,
37-
color: Colors.blue,
37+
color: Theme.of(context).scaffoldBackgroundColor,
3838
child: Center(
3939
child: Icon(
4040
Icons.wifi,
@@ -45,7 +45,7 @@ class _ConnectedPageState extends State<ConnectedPage> {
4545
),
4646
Container(
4747
decoration: BoxDecoration(
48-
color: Colors.white,
48+
color: Theme.of(context).dialogBackgroundColor,
4949
borderRadius: BorderRadius.only(
5050
topLeft: Radius.circular(45.0),
5151
bottomRight: Radius.circular(45.0),

0 commit comments

Comments
 (0)