better loading indicators for timetables, talk and files
This commit is contained in:
1 parent
bee5c02a4f
commit
db9c3386f1
25 files changed
+439
-203
No files matched your search
@@ -164,9 +164,9 @@ class _FilesViewState extends State<_FilesView> {
|
||||
child: const Icon(Icons.add),
|
||||
),
|
||||
body: LoadableStateConsumer<FilesBloc, FilesState>(
|
||||
isReady: (state) => state.listing != null,
|
||||
child: (state, _) {
|
||||
final listing = state.listing;
|
||||
if (listing == null) return const SizedBox.shrink();
|
||||
final listing = state.listing!;
|
||||
if (listing.files.isEmpty) {
|
||||
return const PlaceholderView(icon: Icons.folder_off_rounded, text: 'Der Ordner ist leer');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user