Skip to content

Commit

Permalink
Fix example screens button text colors
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3rndt committed Mar 4, 2024
1 parent 608521f commit 47e46cf
Showing 1 changed file with 14 additions and 45 deletions.
59 changes: 14 additions & 45 deletions example/lib/screens.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ class MainScreen extends StatelessWidget {
children: <Widget>[
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 30.0, vertical: 20.0),
horizontal: 30.0,
vertical: 20.0,
),
child: TextField(
decoration: InputDecoration(hintText: "Test Text Field"),
),
Expand All @@ -43,10 +45,7 @@ class MainScreen extends StatelessWidget {
PageTransitionAnimation.scaleRotate,
);
},
child: Text(
"Go to Second Screen ->",
style: TextStyle(color: Colors.white),
),
child: Text("Go to Second Screen ->"),
),
),
Center(
Expand All @@ -61,18 +60,12 @@ class MainScreen extends StatelessWidget {
onPressed: () {
Navigator.pop(context);
},
child: Text(
"Exit",
style: TextStyle(color: Colors.white),
),
child: Text("Exit"),
),
),
);
},
child: Text(
"Push bottom sheet on TOP of Nav Bar",
style: TextStyle(color: Colors.white),
),
child: Text("Push bottom sheet on TOP of Nav Bar"),
),
),
Center(
Expand All @@ -87,18 +80,12 @@ class MainScreen extends StatelessWidget {
onPressed: () {
Navigator.pop(context);
},
child: Text(
"Exit",
style: TextStyle(color: Colors.white),
),
child: Text("Exit"),
),
),
);
},
child: Text(
"Push bottom sheet BEHIND the Nav Bar",
style: TextStyle(color: Colors.white),
),
child: Text("Push bottom sheet BEHIND the Nav Bar"),
),
),
Center(
Expand All @@ -107,10 +94,7 @@ class MainScreen extends StatelessWidget {
pushDynamicScreen(context,
screen: SampleModalScreen(), withNavBar: true);
},
child: Text(
"Push Dynamic/Modal Screen",
style: TextStyle(color: Colors.white),
),
child: Text("Push Dynamic/Modal Screen"),
),
),
Center(
Expand All @@ -122,7 +106,6 @@ class MainScreen extends StatelessWidget {
this.hideStatus
? "Unhide Navigation Bar"
: "Hide Navigation Bar",
style: TextStyle(color: Colors.white),
),
),
),
Expand All @@ -131,15 +114,10 @@ class MainScreen extends StatelessWidget {
onPressed: () {
Navigator.of(context, rootNavigator: true).pop();
},
child: Text(
"<- Main Menu",
style: TextStyle(color: Colors.white),
),
child: Text("<- Main Menu"),
),
),
SizedBox(
height: 60.0,
),
SizedBox(height: 60.0),
],
),
),
Expand All @@ -164,19 +142,13 @@ class MainScreen2 extends StatelessWidget {
onPressed: () {
pushNewScreen(context, screen: MainScreen3());
},
child: Text(
"Go to Third Screen",
style: TextStyle(color: Colors.white),
),
child: Text("Go to Third Screen"),
),
ElevatedButton(
onPressed: () {
Navigator.pop(context);
},
child: Text(
"Go Back to First Screen",
style: TextStyle(color: Colors.white),
),
child: Text("Go Back to First Screen"),
),
],
),
Expand All @@ -199,10 +171,7 @@ class MainScreen3 extends StatelessWidget {
onPressed: () {
Navigator.pop(context);
},
child: Text(
"Go Back to Second Screen",
style: TextStyle(color: Colors.white),
),
child: Text("Go Back to Second Screen"),
),
),
),
Expand Down

0 comments on commit 47e46cf

Please sign in to comment.