diff --git a/Frontend/lib/mih_components/mih_layout/mih_single_child_scroll.dart b/Frontend/lib/mih_components/mih_layout/mih_single_child_scroll.dart new file mode 100644 index 00000000..76f964e7 --- /dev/null +++ b/Frontend/lib/mih_components/mih_layout/mih_single_child_scroll.dart @@ -0,0 +1,26 @@ +import 'package:flutter/material.dart'; + +class MihSingleChildScroll extends StatefulWidget { + final Widget child; + const MihSingleChildScroll({ + super.key, + required this.child, + }); + + @override + State createState() => _MihSingleChildScrollState(); +} + +class _MihSingleChildScrollState extends State { + @override + Widget build(BuildContext context) { + return SafeArea( + child: ScrollConfiguration( + behavior: ScrollConfiguration.of(context).copyWith(scrollbars: false), + child: SingleChildScrollView( + child: widget.child, + ), + ), + ); + } +}