Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ryan
2020-05-21 22:09:09 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1683a9b52ba416d2df54efdd968c69c7eefb8618
1683a9b5
1 parent
d73e804c
feat: add test for bottom sheet
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
test/bottomsheet_test.dart
test/bottomsheet_test.dart
0 → 100644
View file @
1683a9b
import
'package:flutter/material.dart'
;
import
'package:flutter_test/flutter_test.dart'
;
import
'package:get/get.dart'
;
import
'util/wrapper.dart'
;
void
main
(
)
{
testWidgets
(
"Get.bottomSheet smoke test"
,
(
tester
)
async
{
await
tester
.
pumpWidget
(
Wrapper
(
child:
Container
()),
);
Get
.
bottomSheet
(
Container
(
child:
Wrap
(
children:
<
Widget
>[
ListTile
(
leading:
Icon
(
Icons
.
music_note
),
title:
Text
(
'Music'
),
onTap:
()
=>
{}),
],
),
));
await
tester
.
pumpAndSettle
();
expect
(
find
.
byIcon
(
Icons
.
music_note
),
findsOneWidget
);
});
}
...
...
Please
register
or
login
to post a comment