Skip to content

Commit 0562743

Browse files
authored
Merge pull request #233 from amitamrutiya2210/widget-test
fix some widget test failling issue
2 parents b5cac13 + 97ef00b commit 0562743

10 files changed

+276
-396
lines changed

lib/Components/add_tag_dialogue.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class _AddTagDialogueState extends State<AddTagDialogue>
9797
content: Builder(builder: (context) {
9898
return AnimatedContainer(
9999
duration: Duration(milliseconds: 200),
100+
constraints: BoxConstraints(),
100101
height: _showdropdown
101102
? hp - (600 - (50 * _itemsVisibleInDropdown - 1))
102103
: hp - 650,
@@ -105,6 +106,7 @@ class _AddTagDialogueState extends State<AddTagDialogue>
105106
children: [
106107
Text(
107108
'Set Tags',
109+
key: Key('Set Tags Text'),
108110
textAlign: TextAlign.center,
109111
style: TextStyle(
110112
color: ThemeProvider.theme(widget.index)
@@ -128,6 +130,7 @@ class _AddTagDialogueState extends State<AddTagDialogue>
128130
children: <Widget>[
129131
Expanded(
130132
child: TextFormField(
133+
key: Key('Tags Text Form Field'),
131134
controller: _textController,
132135
decoration: InputDecoration(
133136
fillColor: themeProvider.isDarkMode
@@ -145,9 +148,11 @@ class _AddTagDialogueState extends State<AddTagDialogue>
145148
icon: _showdropdown
146149
? Icon(
147150
Icons.keyboard_arrow_up_rounded,
151+
key: Key('Show Arrow Up Icon'),
148152
)
149153
: Icon(
150154
Icons.keyboard_arrow_down_rounded,
155+
key: Key('Show Arrow Down Icon'),
151156
),
152157
onPressed: () {
153158
SystemChannels.textInput
@@ -192,6 +197,7 @@ class _AddTagDialogueState extends State<AddTagDialogue>
192197
),
193198
),
194199
Container(
200+
key: Key('Tags List Container'),
195201
decoration: BoxDecoration(
196202
borderRadius: BorderRadius.circular(10),
197203
color: themeProvider.isDarkMode

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(

0 commit comments

Comments
 (0)