Skip to content

Commit 058b24f

Browse files
committed
Fix spelling of "grey" to "gray" in counter types and documentation
1 parent b92bcfd commit 058b24f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/data/counter_ideas.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ const Map<CounterType, List<String>> counterIdeas = {
281281
'Fires I had to put out at work (metaphorically)',
282282
'Orange juice glasses consumed with breakfast',
283283
],
284-
CounterType.grey: [
284+
CounterType.gray: [
285285
// --- VISUAL (Weather, City, Nature) ---
286286
'Rainy days where I just stayed inside',
287287
'Pigeons that refused to move out of my way',

lib/models/counter.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'package:flutter/material.dart';
99
import 'package:shared_preferences/shared_preferences.dart';
1010

1111
/// Counter (color) types.
12-
enum CounterType { black, white, red, green, yellow, blue, brown, purple, pink, orange, grey }
12+
enum CounterType { black, white, red, green, yellow, blue, brown, purple, pink, orange, gray }
1313

1414
/// An integer counter class.
1515
class Counter {
@@ -87,7 +87,7 @@ class Counter {
8787
CounterType.purple: Colors.purple,
8888
CounterType.pink: Colors.pink,
8989
CounterType.orange: Colors.orange,
90-
CounterType.grey: Colors.grey,
90+
CounterType.gray: Colors.grey,
9191
};
9292
}
9393

lib/widgets/color_list_tile.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ColorListTile extends StatelessWidget {
2929
/// The additional text content displayed below the title.
3030
final String subtitle;
3131

32-
/// This color list tile is currently selected, and will be rendered with a grey background.
32+
/// This color list tile is currently selected, and will be rendered with a gray background.
3333
final bool selected;
3434

3535
/// Called when the user taps this list tile.

0 commit comments

Comments
 (0)