Skip to content

Commit 663de2f

Browse files
committed
refactor: slighyly changed color
1 parent cba6f31 commit 663de2f

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

lib/page/score/score.dart

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,40 @@ class ScoreWindow extends StatelessWidget {
5757
Row(
5858
mainAxisAlignment: MainAxisAlignment.center,
5959
children: [
60-
FilledButton(
60+
TextButton(
61+
style: ButtonStyle(
62+
backgroundColor: MaterialStateProperty.all(
63+
Theme.of(context).primaryColor,
64+
),
65+
),
6166
onPressed: () {
6267
for (var i in c.toShow) {
6368
c.isSelected[i.mark] = true;
6469
}
6570
c.update();
6671
},
67-
child: const Text("全选"),
72+
child: const Text(
73+
"全选",
74+
style: TextStyle(color: Colors.white),
75+
),
6876
),
6977
const SizedBox(width: 12),
70-
FilledButton(
78+
TextButton(
79+
style: ButtonStyle(
80+
backgroundColor: MaterialStateProperty.all(
81+
Theme.of(context).primaryColor,
82+
),
83+
),
7184
onPressed: () {
7285
for (var i in c.toShow) {
7386
c.isSelected[i.mark] = false;
7487
}
7588
c.update();
7689
},
77-
child: const Text("全不选"),
90+
child: const Text(
91+
"全不选",
92+
style: TextStyle(color: Colors.white),
93+
),
7894
)
7995
],
8096
),

0 commit comments

Comments
 (0)