Skip to content

Commit

Permalink
fix button primary
Browse files Browse the repository at this point in the history
  • Loading branch information
toly1994328 committed Feb 21, 2024
1 parent d14cd8c commit 072c89f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ElevatedButtonStyleDemo extends StatelessWidget {
ElevatedButton(
style: TextButton.styleFrom(
backgroundColor: Colors.orange,
primary: Colors.white,
foregroundColor: Colors.white,
elevation: 2,
shadowColor: Colors.orangeAccent),
child: const Text('ElevatedButton样式'),
Expand All @@ -37,7 +37,7 @@ class ElevatedButtonStyleDemo extends StatelessWidget {
ElevatedButton(
style: TextButton.styleFrom(
backgroundColor: Colors.white,
primary: Colors.black,
foregroundColor: Colors.black,
side: const BorderSide(color: Colors.blue,width: 1),
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class OutlinedButtonStyleDemo extends StatelessWidget {
OutlinedButton(
style: TextButton.styleFrom(
backgroundColor: Colors.orange,
primary: Colors.white,
foregroundColor: Colors.white,
elevation: 2,
shadowColor: Colors.orangeAccent),
child: const Text('ElevatedButton样式'),
Expand All @@ -37,7 +37,7 @@ class OutlinedButtonStyleDemo extends StatelessWidget {
OutlinedButton(
style: TextButton.styleFrom(
backgroundColor: Colors.white,
primary: Colors.black,
foregroundColor: Colors.black,
side: const BorderSide(color: Colors.blue,width: 1),
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TextButtonStyleDemo extends StatelessWidget {
style: TextButton.styleFrom(
backgroundColor: Colors.blue,
padding: const EdgeInsets.symmetric(horizontal: 8),
primary: Colors.white,
foregroundColor: Colors.white,
elevation: 2,
shadowColor: Colors.orangeAccent),
child: const Text('TextButton 样式'),
Expand All @@ -37,7 +37,7 @@ class TextButtonStyleDemo extends StatelessWidget {
TextButton(
style: TextButton.styleFrom(
backgroundColor: Colors.white,
primary: Colors.black,
foregroundColor: Colors.black,
side: const BorderSide(color: Colors.blue, width: 1),
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(10))),
Expand Down

0 comments on commit 072c89f

Please sign in to comment.