Limit timetable scrolling so no errors occur

This commit is contained in:
2023-06-19 18:10:42 +02:00
parent f51e3cd216
commit 7dde66b89c
3 changed files with 26 additions and 1 deletions

View File

@ -3,7 +3,8 @@ import 'package:flutter/material.dart';
class PlaceholderView extends StatelessWidget {
final IconData icon;
final String text;
const PlaceholderView({Key? key, required this.icon, required this.text}) : super(key: key);
final Widget? button;
const PlaceholderView({Key? key, required this.icon, required this.text, this.button}) : super(key: key);
@override
Widget build(BuildContext context) {
@ -25,6 +26,8 @@ class PlaceholderView extends StatelessWidget {
),
textAlign: TextAlign.center,
),
const SizedBox(height: 30),
if(button != null) button!,
],
),
),