Skip to content

Commit

Permalink
format change
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronWhitworth committed Jun 14, 2022
1 parent c7f3e7f commit 059f6db
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Calculator extends StatelessWidget {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Calculator',
theme: ThemeData(primarySwatch: Colors.blue),
theme: ThemeData(primarySwatch: Colors.grey),
home: SimpleCalculator(),
);
}
Expand Down Expand Up @@ -73,7 +73,9 @@ class _SimpleCalculatorState extends State<SimpleCalculator> {
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(0.0),
side: BorderSide(
color: Colors.white, width: 1, style: BorderStyle.solid)),
color: Color.fromARGB(255, 0, 0, 0),
width: .1,
style: BorderStyle.solid)),
padding: EdgeInsets.all(16.0),
onPressed: () => buttonPressed(buttonText),
child: Text(
Expand Down Expand Up @@ -119,9 +121,9 @@ class _SimpleCalculatorState extends State<SimpleCalculator> {
child: Table(
children: [
TableRow(children: [
buildButton("C", 1, Colors.redAccent),
buildButton("⌫", 1, Colors.blue),
buildButton("+", 1, Colors.blue),
buildButton("C", 1, Colors.grey),
buildButton("⌫", 1, Colors.grey),
buildButton("+", 1, Colors.grey),
]),
TableRow(children: [
buildButton("7", 1, Colors.black54),
Expand Down Expand Up @@ -151,19 +153,19 @@ class _SimpleCalculatorState extends State<SimpleCalculator> {
child: Table(
children: [
TableRow(children: [
buildButton("÷", 1, Colors.blue),
buildButton("÷", 1, Colors.deepOrange),
]),
TableRow(children: [
buildButton("×", 1, Colors.blue),
buildButton("×", 1, Colors.deepOrange),
]),
TableRow(children: [
buildButton("-", 1, Colors.blue),
buildButton("-", 1, Colors.deepOrange),
]),
TableRow(children: [
buildButton("+", 1, Colors.blue),
buildButton("+", 1, Colors.deepOrange),
]),
TableRow(children: [
buildButton("=", 1, Colors.redAccent),
buildButton("=", 1, Colors.deepOrange),
]),
],
),
Expand Down

0 comments on commit 059f6db

Please sign in to comment.