Files
GitJournal/lib/folder_views/grid_view.dart
Vishesh Handa c4ef1f569b Use flutter_lint
Instead of picking lint values. This way I don't need to routinely
looking at extra lints to enable.
2021-09-21 15:42:13 +02:00

45 lines
1.1 KiB
Dart

/*
* SPDX-FileCopyrightText: 2019-2021 Vishesh Handa <me@vhanda.in>
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import 'package:flutter/material.dart';
import 'package:gitjournal/core/note.dart';
import 'package:gitjournal/core/notes_folder.dart';
import 'package:gitjournal/folder_views/card_view.dart';
class GridFolderView extends StatelessWidget {
final NoteSelectedFunction noteTapped;
final NoteSelectedFunction noteLongPressed;
final NoteBoolPropertyFunction isNoteSelected;
final NotesFolder folder;
final String emptyText;
final String searchTerm;
const GridFolderView({
required this.folder,
required this.noteTapped,
required this.noteLongPressed,
required this.isNoteSelected,
required this.emptyText,
required this.searchTerm,
});
@override
Widget build(BuildContext context) {
return CardView(
folder: folder,
noteTapped: noteTapped,
noteLongPressed: noteLongPressed,
emptyText: emptyText,
fixedHeight: true,
isNoteSelected: isNoteSelected,
searchTerm: searchTerm,
);
}
}