Line data Source code
1 : // Copyright 2023 The terCAD team. All rights reserved.
2 : // Use of this source code is governed by a CC BY-NC-ND 4.0 license that can be found in the LICENSE file.
3 :
4 : import 'package:app_finance/_classes/controller/focus_controller.dart';
5 : import 'package:app_finance/design/wrapper/focus_wrapper.dart';
6 : import 'package:material_ui/material_ui.dart';
7 :
8 : class SingleScrollWrapper extends StatelessWidget {
9 : final FocusController controller;
10 : final Widget child;
11 :
12 1 : const SingleScrollWrapper({
13 : super.key,
14 : required this.controller,
15 : required this.child,
16 : });
17 :
18 1 : @override
19 : Widget build(BuildContext context) {
20 1 : return FocusWrapper(
21 1 : controller: controller,
22 4 : child: SingleChildScrollView(controller: controller.controller, child: child),
23 : );
24 : }
25 : }
|