mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-06-14 22:55:12 +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:
@@ -160,15 +160,9 @@ void main() {
|
||||
final context = tester.element(find.byType(ScannerScreen));
|
||||
final l10n = AppLocalizations.of(context);
|
||||
if (PlatformInfo.supportsUsbSerial) {
|
||||
expect(
|
||||
find.byTooltip(l10n.connectionChoiceUsbLabel),
|
||||
findsOneWidget,
|
||||
);
|
||||
expect(find.byTooltip(l10n.connectionChoiceUsbLabel), findsOneWidget);
|
||||
} else {
|
||||
expect(
|
||||
find.byTooltip(l10n.connectionChoiceUsbLabel),
|
||||
findsNothing,
|
||||
);
|
||||
expect(find.byTooltip(l10n.connectionChoiceUsbLabel), findsNothing);
|
||||
}
|
||||
|
||||
// ScannerScreen.dispose() schedules disconnect work that debounces notify.
|
||||
|
||||
Reference in New Issue
Block a user