Limit timetable scrolling so no errors occur
This commit is contained in:
@ -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!,
|
||||
],
|
||||
),
|
||||
),
|
||||
|
Reference in New Issue
Block a user