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:flutter/material.dart'; 7 : 8 : class SingleScrollWrapper extends StatelessWidget { 9 : final FocusController controller; 10 : final Widget child; 11 : 12 2 : const SingleScrollWrapper({ 13 : super.key, 14 : required this.controller, 15 : required this.child, 16 : }); 17 : 18 2 : @override 19 : Widget build(BuildContext context) { 20 2 : return FocusWrapper( 21 2 : controller: controller, 22 8 : child: SingleChildScrollView(controller: controller.controller, child: child), 23 : ); 24 : } 25 : }