1. Import

This commit is contained in:
Sven committed 2023-11-14 11:38:44 +01:00
commit cb4525a774
165 files changed
+14763

No files matched your search

@@ -0,0 +1,13 @@
import 'package:flutter/cupertino.dart';
import 'header_info.dart';
abstract class ContentViewWidget extends StatefulWidget {
const ContentViewWidget({super.key});
Future<HeaderInfo> getHeaderInfo(BuildContext context);
void close() {
close();
}
}
+11
View File
@@ -0,0 +1,11 @@
import 'package:flutter/material.dart';
class HeaderInfo {
late Widget titleWidget;
late bool rightButtonEnabled;
late bool rightButtonVisible;
late Future<Widget?>? rightButtonImage;
late Function rightButtonOnPressed;
HeaderInfo({required this.titleWidget, required this.rightButtonEnabled, required this.rightButtonVisible, this.rightButtonImage, required this.rightButtonOnPressed});
}
+17
View File
@@ -0,0 +1,17 @@
class WidgetStack<E> {
final _list = <E>[];
void push(E value) => _list.add(value);
E pop() => _list.removeLast();
E get peek => _list.last;
bool get isEmpty => _list.isEmpty;
bool get isNotEmpty => _list.isNotEmpty;
void clear() => _list.clear();
@override
String toString() => _list.toString();
}