mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-15 16:03:34 +08:00

Just with a fixed height card. This way we save on lots of code duplication, specially as each of these views will become more complex as we add dismissable, animations and selectable notes.
28 lines
736 B
Dart
28 lines
736 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:gitjournal/core/notes_folder.dart';
|
|
import 'package:gitjournal/folder_views/card_view.dart';
|
|
import 'package:gitjournal/folder_views/note_tile.dart';
|
|
|
|
class GridFolderView extends StatelessWidget {
|
|
final NoteSelectedFunction noteSelectedFunction;
|
|
final NotesFolder folder;
|
|
final String emptyText;
|
|
|
|
GridFolderView({
|
|
@required this.folder,
|
|
@required this.noteSelectedFunction,
|
|
@required this.emptyText,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return CardView(
|
|
folder: folder,
|
|
noteSelectedFunction: noteSelectedFunction,
|
|
emptyText: emptyText,
|
|
fixedHeight: true,
|
|
);
|
|
}
|
|
}
|