Updated TabBar and ToggleButtons examples (#128088)

Updated the ToggleButtons example and test to M3.

Updated the nested tabs test to avoid warnings like:
```
Warning: A call to tap() with finder "exactly one widget with type "Tab" which is an ancestor of text "Explore": Tab(text: "Explore", icon: Icon)" derived an Offset (Offset(666.7, 92.0)) that would not hit test on the specified widget.
```
This commit is contained in:
Hans Muller
2023-06-01 18:05:31 -07:00
committed by GitHub
parent ab70aea3ee
commit 4464d09db0
3 changed files with 37 additions and 31 deletions

View File

@@ -23,8 +23,9 @@ class ToggleButtonsExampleApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: ToggleButtonsSample(title: 'ToggleButtons Sample'),
return MaterialApp(
theme: ThemeData(useMaterial3: true),
home: const ToggleButtonsSample(title: 'ToggleButtons Sample'),
);
}
}