mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-23 19:04:33 +10:00
Refactor UI code for better readability and consistency
- Improved formatting of ListTile icons and text styles in settings_screen.dart, telemetry_screen.dart, usb_screen.dart, gif_picker.dart, path_editor_sheet.dart, repeater_login_dialog.dart, and room_login_dialog.dart for better readability. - Consolidated TextStyle definitions into single lines where applicable. - Updated notification_service.dart to enhance readability of notification ID assignment. - Simplified function signatures in routing_sheet.dart for clarity. - Cleaned up test assertions in usb_flow_test.dart for conciseness. - Removed unused translations in untranslated.json to streamline localization files.
This commit is contained in:
@@ -119,7 +119,9 @@ class _PathEditorSheetState extends State<PathEditorSheet> {
|
||||
_hexError = null;
|
||||
_hops
|
||||
..clear()
|
||||
..addAll(tokens.map((t) => _Hop(_nextHopId++, int.parse(t, radix: 16))));
|
||||
..addAll(
|
||||
tokens.map((t) => _Hop(_nextHopId++, int.parse(t, radix: 16))),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -287,10 +289,7 @@ class _PathEditorSheetState extends State<PathEditorSheet> {
|
||||
),
|
||||
const Divider(),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
l10n.pathEditor_addHops,
|
||||
style: theme.textTheme.titleSmall,
|
||||
),
|
||||
Text(l10n.pathEditor_addHops, style: theme.textTheme.titleSmall),
|
||||
const SizedBox(height: 8),
|
||||
TextField(
|
||||
onChanged: (value) => setState(() => _search = value),
|
||||
|
||||
Reference in New Issue
Block a user