mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Hide the debug banner in the PopupMenuButton example (#108324)
* Hide the debug banner in the PopupMenuButton example * Add test to verify that debug banner is not shown
This commit is contained in:
parent
c8b5d10932
commit
e3d08fb6d3
@ -19,6 +19,7 @@ class MyApp extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return const MaterialApp(
|
||||
debugShowCheckedModeBanner: false,
|
||||
title: _title,
|
||||
home: MyStatefulWidget(),
|
||||
);
|
||||
|
@ -26,4 +26,9 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('_selectedMenu: itemOne'), findsNothing);
|
||||
});
|
||||
|
||||
testWidgets('Does not show debug banner', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(const example.MyApp());
|
||||
expect(find.byType(CheckedModeBanner), findsNothing);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user