[Release] v3.3.0+330001 (#235)

NEW
- [Home/Calendar] New "schedule" view to view all days as one list
- [Home/Modules] Option to use module "brand" colours or the LunaSea list colours
- [Search] Option to hide adult categories
- [-arr/Catalogue] Ability to sort by date added
- [-arr/Search] Show the indexer/tracker on the collapsed tile

TWEAKS
- [Development] Updated Flutter packages

FIXES
- Multiple smaller crash/error fixes

Thanks to @lightglitch on GitHub for implementing the schedule calendar mode!
This commit is contained in:
Jagandeep Brar
2020-08-16 14:01:11 -05:00
committed by GitHub
parent 0236ba70eb
commit 291db7321f
61 changed files with 528 additions and 139 deletions

View File

@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:lunasea/core.dart';
import 'package:lunasea/modules/home.dart';
class HomeSummaryTile extends StatelessWidget {
final String title;
@@ -8,6 +9,7 @@ class HomeSummaryTile extends StatelessWidget {
final int index;
final String route;
final bool justPush;
final Color color;
HomeSummaryTile({
@required this.title,
@@ -15,22 +17,28 @@ class HomeSummaryTile extends StatelessWidget {
@required this.icon,
@required this.index,
@required this.route,
@required this.color,
this.justPush = false,
});
@override
Widget build(BuildContext context) => LSCardTile(
title: LSTitle(text: title),
subtitle: LSSubtitle(text: subtitle),
leading: LSIconButton(
icon: icon,
color: LSColors.list(index),
Widget build(BuildContext context) => ValueListenableBuilder(
valueListenable: Database.lunaSeaBox.listenable(keys: [HomeDatabaseValue.MODULES_BRAND_COLOURS.key]),
builder: (context, box, _) => LSCardTile(
title: LSTitle(text: title),
subtitle: LSSubtitle(text: subtitle),
leading: LSIconButton(
icon: icon,
color: HomeDatabaseValue.MODULES_BRAND_COLOURS.data
? color
: LSColors.list(index),
),
trailing: LSIconButton(
icon: Icons.arrow_forward_ios,
),
onTap: () async => justPush
? Navigator.of(context).pushNamed(route)
: Navigator.of(context).pushNamedAndRemoveUntil(route, (Route<dynamic> route) => false),
),
trailing: LSIconButton(
icon: Icons.arrow_forward_ios,
),
onTap: () async => justPush
? Navigator.of(context).pushNamed(route)
: Navigator.of(context).pushNamedAndRemoveUntil(route, (Route<dynamic> route) => false),
);
}