We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85156a5 commit cbd4e66Copy full SHA for cbd4e66
packages/flutter_hooks/test/use_tab_controller_test.dart
@@ -143,13 +143,10 @@ void main() {
143
late TabController controller;
144
late TabController controller2;
145
146
- final vsync = TickerProviderMock();
147
- final ticker = Ticker((_) {});
148
- when(vsync.createTicker((_) {})).thenReturn(ticker);
149
-
150
await tester.pumpWidget(
151
HookBuilder(
152
builder: (context) {
+ final vsync = useSingleTickerProvider();
153
controller = useTabController(initialLength: 4);
154
controller2 = TabController(length: 4, vsync: vsync);
155
return Container();
0 commit comments