Skip to content

Commit

Permalink
fix: navBars unmodifiable issues #612
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhigq committed Mar 5, 2024
1 parent 32cdb27 commit fea7001
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/models/common/nav_bar_config.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import 'package:flutter/material.dart';

const defaultNavigationBars = [
List defaultNavigationBars = [
{
'id': 0,
'icon': Icon(
'icon': const Icon(
Icons.home_outlined,
size: 21,
),
'selectIcon': Icon(
'selectIcon': const Icon(
Icons.home,
size: 21,
),
Expand All @@ -16,11 +16,11 @@ const defaultNavigationBars = [
},
{
'id': 1,
'icon': Icon(
'icon': const Icon(
Icons.motion_photos_on_outlined,
size: 21,
),
'selectIcon': Icon(
'selectIcon': const Icon(
Icons.motion_photos_on,
size: 21,
),
Expand All @@ -29,11 +29,11 @@ const defaultNavigationBars = [
},
{
'id': 2,
'icon': Icon(
'icon': const Icon(
Icons.video_collection_outlined,
size: 20,
),
'selectIcon': Icon(
'selectIcon': const Icon(
Icons.video_collection,
size: 21,
),
Expand Down

0 comments on commit fea7001

Please sign in to comment.