Skip to content

Commit 3f745f4

Browse files
committed
Update configuration files and add counter ideas data
1 parent 9078a88 commit 3f745f4

5 files changed

Lines changed: 95 additions & 27 deletions

File tree

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ charset = utf-8
55
end_of_line = lf
66
indent_size = 2
77
indent_style = space
8-
insert_final_newline = false
8+
insert_final_newline = true
99
trim_trailing_whitespace = true

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Disable automatic line ending conversion for all file types
2-
* -text
1+
# Set default behavior to automatically normalize line endings and use LF everywhere
2+
* text=auto eol=lf

.vscode/settings.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
{
22
"files.eol": "\n",
3+
"editor.tabSize": 2,
34
"editor.rulers": [
4-
80,100,120
5+
80,
6+
100,
7+
120
58
],
9+
"[dart]": {
10+
"editor.rulers": [
11+
80,
12+
100,
13+
120
14+
],
15+
},
616
"dart.lineLength": 100,
7-
"editor.tabSize": 2,
817
}

analysis_options.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,13 @@
1-
# This file configures the analyzer, which statically analyzes Dart code to
2-
# check for errors, warnings, and lints.
3-
#
4-
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5-
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6-
# invoked from the command line by running `flutter analyze`.
7-
8-
# The following line activates a set of recommended lints for Flutter apps,
9-
# packages, and plugins designed to encourage good coding practices.
101
include: package:flutter_lints/flutter.yaml
112

123
linter:
13-
# The lint rules applied to this project can be customized in the
14-
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15-
# included above or to enable additional rules. A list of all available lints
16-
# and their documentation is published at https://dart.dev/lints.
17-
#
18-
# Instead of disabling a lint rule for the entire project in the
19-
# section below, it can also be suppressed for a single line of code
20-
# or a specific dart file by using the `// ignore: name_of_lint` and
21-
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22-
# producing the lint.
234
rules:
245
- prefer_const_declarations
256
- prefer_const_constructors
267
- prefer_const_literals_to_create_immutables
278
- unnecessary_const
289
- prefer_single_quotes
2910

30-
# Additional information about this file can be found at
31-
# https://dart.dev/guides/language/analysis-options
32-
3311
formatter:
3412
page_width: 100
3513
trailing_commas: preserve

lib/data/counter_ideas.dart

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// Copyright 2020-2025 The Hello World Writer. All rights reserved.
2+
// https://www.thehelloworldwriter.com
3+
//
4+
// Use of this source code is governed by an MIT-style license
5+
// that can be found in the LICENSE file.
6+
7+
import '../models/counter.dart';
8+
9+
const Map<CounterType, List<String>> counterIdeas = {
10+
CounterType.black: [],
11+
CounterType.white: [],
12+
CounterType.red: [
13+
// --- VISUAL (Literally Red) ---
14+
'Red cars that were definitely speeding',
15+
'Tomatoes sliced for a sandwich',
16+
'Spicy chili peppers I dared to eat',
17+
'Apples eaten to keep the doctor away',
18+
'People wearing a red shirt today',
19+
'Roses I stopped to smell',
20+
'Bricks in the wall (if you are extremely bored)',
21+
'Slices of pepperoni pizza',
22+
'Glasses of red wine consumed',
23+
// --- UI & TECH (Red in Interfaces) ---
24+
'Bugs found in production code', // Errors are red
25+
'Times the battery icon turned red', // Low battery
26+
'YouTube videos watched instead of working', // Logo is red
27+
'Critical errors I pretended I didn\'t see',
28+
'Urgent emails marked "High Priority"', // Usually red exclamation mark
29+
'False alarms from the smoke detector', // Device is red
30+
// --- SYMBOLIC & EMOTIONAL (Metaphors) ---
31+
'Stop signs that I actually stopped for', // Stop = Red
32+
'Times I successfully said "No"', // Cancel/No buttons are red
33+
'Red flags I ignored in a conversation', // The idiom
34+
'Times I blushed from embarrassment', // Turning red
35+
'Moments I felt actual "road rage"', // Seeing red/Anger
36+
],
37+
CounterType.green: [],
38+
CounterType.yellow: [],
39+
CounterType.blue: [
40+
'Glasses of water',
41+
'Bugs fixed',
42+
'Times you looked at the sky',
43+
'Deep breaths taken',
44+
'Cold emails sent',
45+
],
46+
CounterType.brown: [
47+
'Glasses of water',
48+
'Bugs fixed',
49+
'Times you looked at the sky',
50+
'Deep breaths taken',
51+
'Cold emails sent',
52+
],
53+
CounterType.purple: [
54+
'Creative bursts',
55+
'Royal moments',
56+
'Songs looped',
57+
'Unusual coincidences',
58+
'Dreams remembered',
59+
],
60+
CounterType.pink: [
61+
'Creative bursts',
62+
'Royal moments',
63+
'Songs looped',
64+
'Unusual coincidences',
65+
'Dreams remembered',
66+
],
67+
CounterType.orange: [
68+
'Creative bursts',
69+
'Royal moments',
70+
'Songs looped',
71+
'Unusual coincidences',
72+
'Dreams remembered',
73+
],
74+
CounterType.grey: [
75+
'Creative bursts',
76+
'Royal moments',
77+
'Songs looped',
78+
'Unusual coincidences',
79+
'Dreams remembered',
80+
],
81+
};

0 commit comments

Comments
 (0)