Skip to content

Commit 7e78ad2

Browse files
committed
fix some widget test failling issue
1 parent 69d1b15 commit 7e78ad2

File tree

6 files changed

+80
-386
lines changed

6 files changed

+80
-386
lines changed

lib/Components/add_torrent_sheet.dart

Lines changed: 0 additions & 332 deletions
This file was deleted.

lib/Components/bottom_floating_menu_button.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ class _BottomFloatingMenuButtonState extends State<BottomFloatingMenuButton>
462462
children: [
463463
Expanded(
464464
child: TextFormField(
465+
key: Key('MagnetUrl TextFormField'),
465466
controller: magnetUrlController,
466467
style: TextStyle(
467468
color: ThemeProvider.theme(
@@ -534,6 +535,7 @@ class _BottomFloatingMenuButtonState extends State<BottomFloatingMenuButton>
534535
mainAxisSize: MainAxisSize.min,
535536
children: <Widget>[
536537
TextField(
538+
key: Key('Destination TextFormField'),
537539
controller: directoryController,
538540
style: TextStyle(
539541
color: ThemeProvider.theme(

lib/Pages/torrent_screen.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,8 @@ class _TorrentScreenState extends State<TorrentScreen> {
422422
),
423423
),
424424
),
425-
floatingActionButton:
426-
BottomFloatingMenuButton(index: widget.index),
425+
floatingActionButton: BottomFloatingMenuButton(
426+
key: Key('Floating Action Button'), index: widget.index),
427427
),
428428
);
429429
}));

0 commit comments

Comments
 (0)