mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-13 23:04:12 +08:00
Remove the Compact View
I need to merge it into the StandardView. The more I think about it, the more this view doesn't make sense. Specially since I need to add the same extra configuration options in both views.
This commit is contained in:
@ -2,7 +2,6 @@ import 'package:fimber/fimber.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:gitjournal/core/note.dart';
|
||||
import 'package:gitjournal/core/notes_folder.dart';
|
||||
import 'package:gitjournal/folder_views/compact_view.dart';
|
||||
import 'package:gitjournal/folder_views/journal_view.dart';
|
||||
import 'package:gitjournal/screens/note_editor.dart';
|
||||
import 'package:gitjournal/utils.dart';
|
||||
@ -12,7 +11,6 @@ import 'standard_view.dart';
|
||||
enum FolderViewType {
|
||||
Standard,
|
||||
Journal,
|
||||
Compact,
|
||||
}
|
||||
|
||||
Widget buildFolderView(
|
||||
@ -47,12 +45,6 @@ Widget buildFolderView(
|
||||
noteSelectedFunction: noteSelectionFn,
|
||||
emptyText: emptyText,
|
||||
);
|
||||
case FolderViewType.Compact:
|
||||
return CompactView(
|
||||
folder: folder,
|
||||
noteSelectedFunction: noteSelectionFn,
|
||||
emptyText: emptyText,
|
||||
);
|
||||
}
|
||||
|
||||
assert(false, "Code path should never be executed");
|
||||
|
Reference in New Issue
Block a user