forked from eatvio/eatvio_app
refactor(tests): replace 'final' with 'const' for improved performance in various test files
This commit is contained in:
@@ -12,7 +12,7 @@ void main() {
|
||||
home: Scaffold(
|
||||
body: ChipGroup(
|
||||
selectedChipIndex: 0,
|
||||
chipsLabelList: ['All', 'Recipes', 'Diets'],
|
||||
chipsLabelList: const ['All', 'Recipes', 'Diets'],
|
||||
setSelectedChipIndex: (index) {},
|
||||
),
|
||||
),
|
||||
@@ -29,7 +29,7 @@ void main() {
|
||||
home: Scaffold(
|
||||
body: ChipGroup(
|
||||
selectedChipIndex: 0,
|
||||
chipsLabelList: ['All', 'Recipes', 'Diets', 'Plans'],
|
||||
chipsLabelList: const ['All', 'Recipes', 'Diets', 'Plans'],
|
||||
setSelectedChipIndex: (index) {},
|
||||
),
|
||||
),
|
||||
@@ -51,7 +51,7 @@ void main() {
|
||||
home: Scaffold(
|
||||
body: ChipGroup(
|
||||
selectedChipIndex: 0,
|
||||
chipsLabelList: ['All', 'Recipes', 'Diets'],
|
||||
chipsLabelList: const ['All', 'Recipes', 'Diets'],
|
||||
setSelectedChipIndex: (index) {
|
||||
selectedIndex = index;
|
||||
},
|
||||
@@ -73,7 +73,7 @@ void main() {
|
||||
home: Scaffold(
|
||||
body: ChipGroup(
|
||||
selectedChipIndex: 0,
|
||||
chipsLabelList: [],
|
||||
chipsLabelList: const [],
|
||||
setSelectedChipIndex: (index) {},
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user