chore: formatting

This commit is contained in:
2023-10-07 03:16:37 +03:00
parent ab5bb97244
commit c19497c57b
28 changed files with 6 additions and 30 deletions

View File

@@ -378,4 +378,3 @@ const xtermColorMap = {
254: 0xFFE4E4E4,
255: 0xFFEEEEEE,
};

View File

@@ -7,4 +7,3 @@ const colorPatternRaw = r'\[\d*m';
const boldByte = 1;
const italicByte = 3;
const underlineByte = 4;

View File

@@ -43,4 +43,3 @@ class DialogButtonSet {
);
}
}

View File

@@ -103,4 +103,3 @@ class NativeMUDAction extends MUDAction {
customInvoke(store, parent, matches);
}
}

View File

@@ -96,4 +96,3 @@ final builtInAliases = <Alias>[
),
)
];

View File

@@ -78,7 +78,9 @@ class Automation {
}
String get actualPattern => isRegex ? pattern : _strToRegExp(pattern).pattern;
RegExp get actualRegex => isRegex ? RegExp(pattern, caseSensitive: isCaseSensitive) : _strToRegExp(pattern);
RegExp get actualRegex => isRegex
? RegExp(pattern, caseSensitive: isCaseSensitive)
: _strToRegExp(pattern);
RegExp _strToRegExp(String pattern) {
final updatedPattern = pattern
@@ -139,4 +141,3 @@ class Automation {
action: action ?? this.action,
);
}

View File

@@ -18,4 +18,3 @@ $sep
''';
}
}

View File

@@ -516,4 +516,3 @@ enum GameButtonInteraction {
dragLeft,
dragRight,
}

View File

@@ -310,4 +310,3 @@ final movementPreset = GameButtonSetData(
),
],
);

View File

@@ -251,4 +251,3 @@ enum AuthMethod {
none,
diku,
}

View File

@@ -72,4 +72,3 @@ class Trigger extends Automation {
group: group ?? this.group,
);
}

View File

@@ -30,4 +30,3 @@ class Variable {
value ?? this.value,
);
}

View File

@@ -91,4 +91,3 @@ final routes = <String, Widget Function(BuildContext)>{
},
),
};

View File

@@ -435,4 +435,3 @@ mixin GameStoreStateMixin<T extends StatefulWidget> on State<T> {
}
final gameStore = GameStore();

View File

@@ -17,4 +17,3 @@ String capitalize(String string) {
.map((word) => word[0].toUpperCase() + word.substring(1))
.join(' ');
}

View File

@@ -115,4 +115,3 @@ class _ButtonEditorDialogState extends State<ButtonEditorDialog> {
);
}
}

View File

@@ -75,4 +75,3 @@ class _GameButtonLabelEditorDialogState
);
}
}

View File

@@ -66,4 +66,3 @@ class MyApp extends StatelessWidget {
);
}
}

View File

@@ -71,4 +71,3 @@ class AliasListPage extends StatelessWidget with GameStoreMixin {
await store.loadAliases();
}
}

View File

@@ -229,4 +229,3 @@ class FakeGameButton extends StatelessWidget {
);
}
}

View File

@@ -93,4 +93,3 @@ class ButtonSetListPage extends StatelessWidget with GameStoreMixin {
await store.loadButtonSets();
}
}

View File

@@ -97,4 +97,3 @@ class _GenericListPageState<T> extends State<GenericListPage<T>>
}).toList();
}
}

View File

@@ -164,4 +164,3 @@ class HomePageState extends State<HomePage>
);
}
}

View File

@@ -115,4 +115,3 @@ class HomeScaffold extends StatelessWidget with GameStoreMixin {
);
}
}

View File

@@ -71,4 +71,3 @@ class TriggerListPage extends StatelessWidget with GameStoreMixin {
await store.loadTriggers();
}
}

View File

@@ -85,4 +85,3 @@ class IconSelector extends StatelessWidget {
return search.isEmpty || key.contains(search.toLowerCase());
}
}

View File

@@ -157,7 +157,7 @@ script_runner:
- install: adb install build/app/outputs/flutter-apk/app-release.apk
- to-device: build:apk && push && install
- auto-fix: dart fix --apply
- format: flutter format -l 100 --fix lib/ test/
- format: dart format .
- gen:page: npx simple-scaffold@latest -t templates/page -o lib/modules -s true
- gen:model: npx simple-scaffold@latest -t templates/model -o lib/models -s false
- gen:widget: npx simple-scaffold@latest -t templates/widget -o lib/widgets -s false

View File

@@ -36,7 +36,8 @@ void main() async {
print('Error parsing line: $line');
print(e);
print(stack);
print('parts: ${line.split(RegExp(r'\s+')).map((e) => '"$e"').join(', ')}');
print(
'parts: ${line.split(RegExp(r'\s+')).map((e) => '"$e"').join(', ')}');
break;
}
}
@@ -67,4 +68,3 @@ ${iconListLines.join('\n')}
print('Done');
}