fix font awesome icons use
This commit is contained in:
parent
0dc8ac49be
commit
95511fdc99
7 changed files with 12 additions and 12 deletions
|
|
@ -25,7 +25,7 @@ class MineTile extends StatelessWidget {
|
|||
|
||||
if (square.isOpened) {
|
||||
if (square.hasBomb) {
|
||||
return const Icon(FontAwesomeIcons.bomb, color: Colors.black);
|
||||
return const Icon(MihIcons.minesweeper, color: Colors.black);
|
||||
} else if (square.bombsAround > 0) {
|
||||
// Display bomb count
|
||||
return Center(
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ class _MihMineSweeperState extends State<MihMineSweeper> {
|
|||
|
||||
MihPackageTools getTools() {
|
||||
Map<Widget, void Function()?> temp = {};
|
||||
temp[const Icon(FontAwesomeIcons.bomb)] = () {
|
||||
temp[const Icon(MihIcons.minesweeper)] = () {
|
||||
context.read<MihMineSweeperProvider>().setToolIndex(0);
|
||||
};
|
||||
temp[const Icon(Icons.leaderboard_rounded)] = () {
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ class _MihMineSweeperLeaderBoardState extends State<MihMineSweeperLeaderBoard> {
|
|||
WidgetSpan(
|
||||
alignment: PlaceholderAlignment.middle,
|
||||
child: Icon(
|
||||
FontAwesomeIcons.bomb,
|
||||
MihIcons.minesweeper,
|
||||
size: 20,
|
||||
color: MihColors.secondary(),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@ class _MineSweeperGameState extends State<MineSweeperGame> {
|
|||
children: [
|
||||
const SizedBox(height: 10),
|
||||
Icon(
|
||||
FontAwesomeIcons.bomb,
|
||||
MihIcons.minesweeper,
|
||||
color: MihColors.secondary(),
|
||||
size: 125,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ class _MihMineSweeperLeaderBoardState extends State<MyScoreBoard> {
|
|||
WidgetSpan(
|
||||
alignment: PlaceholderAlignment.middle,
|
||||
child: Icon(
|
||||
FontAwesomeIcons.bomb,
|
||||
MihIcons.minesweeper,
|
||||
size: 20,
|
||||
color: MihColors.secondary(),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue