Skip to content

Commit 2dd4eba

Browse files
committed
Format
1 parent 82c543c commit 2dd4eba

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

packages/flutter_hooks/lib/src/tab_controller.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ class _TabControllerHook extends Hook<TabController> {
3939
final Duration? animationDuration;
4040

4141
@override
42-
HookState<TabController, Hook<TabController>> createState() => _TabControllerHookState();
42+
HookState<TabController, Hook<TabController>> createState() =>
43+
_TabControllerHookState();
4344
}
4445

45-
class _TabControllerHookState extends HookState<TabController, _TabControllerHook> {
46+
class _TabControllerHookState
47+
extends HookState<TabController, _TabControllerHook> {
4648
late final controller = TabController(
4749
length: hook.length,
4850
initialIndex: hook.initialIndex,

packages/flutter_hooks/test/use_tab_controller_test.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ void main() {
2020
final element = tester.element(find.byType(HookBuilder));
2121

2222
expect(
23-
element.toDiagnosticsNode(style: DiagnosticsTreeStyle.offstage).toStringDeep(),
23+
element
24+
.toDiagnosticsNode(style: DiagnosticsTreeStyle.offstage)
25+
.toStringDeep(),
2426
equalsIgnoringHashCodes(
2527
'HookBuilder\n'
2628
' │ useSingleTickerProvider\n'
@@ -137,7 +139,8 @@ void main() {
137139
ticker.dispose();
138140
});
139141

140-
testWidgets('initial animationDuration matches with real constructor', (tester) async {
142+
testWidgets('initial animationDuration matches with real constructor',
143+
(tester) async {
141144
late TabController controller;
142145
late TabController controller2;
143146

0 commit comments

Comments
 (0)