Skip to content

Commit

Permalink
Remove material colors
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonIT committed May 12, 2019
1 parent d87b307 commit c6a81e4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:barcode_scan/barcode_scan.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:intl/intl.dart';
import 'package:validator_app/api.dart';
Expand Down Expand Up @@ -51,7 +50,7 @@ class MyHomePage extends StatelessWidget {
isDefaultAction: true,
child: Text(
"Close",
style: TextStyle(color: Colors.red),
style: TextStyle(color: CupertinoColors.destructiveRed),
),
onPressed: () {
Navigator.of(context, rootNavigator: true).pop("Cancel");
Expand All @@ -70,7 +69,7 @@ class MyHomePage extends StatelessWidget {
isDefaultAction: true,
child: Text(
"Close",
style: TextStyle(color: Colors.red),
style: TextStyle(color: CupertinoColors.destructiveRed),
),
onPressed: () {
Navigator.of(context, rootNavigator: true).pop("Cancel");
Expand All @@ -89,7 +88,7 @@ class MyHomePage extends StatelessWidget {
isDefaultAction: true,
child: Text(
"Close",
style: TextStyle(color: Colors.red),
style: TextStyle(color: CupertinoColors.destructiveRed),
),
onPressed: () {
Navigator.of(context, rootNavigator: true).pop("Cancel");
Expand Down Expand Up @@ -138,11 +137,11 @@ class TicketInfoPage extends StatelessWidget {
this._ticket.valid
? Icon(
CupertinoIcons.check_mark_circled_solid,
color: Colors.green,
color: CupertinoColors.activeGreen,
)
: Icon(
CupertinoIcons.clear_thick,
color: Colors.red,
color: CupertinoColors.destructiveRed,
)
],
),
Expand Down Expand Up @@ -270,7 +269,7 @@ class _SettingsState extends State<Settings> {
isDefaultAction: true,
child: Text(
"Close",
style: TextStyle(color: Colors.red),
style: TextStyle(color: CupertinoColors.destructiveRed),
),
onPressed: () {
Navigator.of(context, rootNavigator: true).pop("Cancel");
Expand All @@ -290,7 +289,7 @@ class _SettingsState extends State<Settings> {
isDefaultAction: true,
child: Text(
"Close",
style: TextStyle(color: Colors.red),
style: TextStyle(color: CupertinoColors.destructiveRed),
),
onPressed: () {
Navigator.of(context, rootNavigator: true).pop("Cancel");
Expand Down

0 comments on commit c6a81e4

Please sign in to comment.