Connect a radio: one page with Bluetooth, USB and TCP tabs
Replace the scanner, USB and TCP screens with one page and a tab for each, so the design and the connection options are consistent. Fixes #699, where the USB screen's Bluetooth button went back to the main screens instead of the scanner. The "Need a new node?" banner shows on every tab, with a close button that hides it until the page is opened again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
86b3e252c6
commit
9104b4a60a
60 files changed
+989
-1474
No files matched your search
@@ -86,4 +86,21 @@ void main() {
|
||||
expect(find.byType(InkWell), findsNothing);
|
||||
expect(tester.getSize(find.byType(GetNodeBanner)).height, 0);
|
||||
});
|
||||
|
||||
testWidgets('stays hidden on a landscape phone', (tester) async {
|
||||
await pumpBanner(tester, size: const Size(740, 360), textScale: 1);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Need a new node?'), findsNothing);
|
||||
});
|
||||
|
||||
testWidgets('Close hides the banner', (tester) async {
|
||||
await pumpBanner(tester, size: const Size(390, 844), textScale: 1);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.tap(find.byTooltip('Close'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Need a new node?'), findsNothing);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user