feat: add an OpenContainer wrapper and remove an unneeded padding on app selector card

This commit is contained in:
Alberto Ponces
2022-09-01 11:16:14 +01:00
parent 0d14db41e1
commit 10a6ec2f1e
13 changed files with 46 additions and 49 deletions

View File

@ -5,9 +5,7 @@ import 'package:revanced_manager/ui/views/home/home_viewmodel.dart';
import 'package:revanced_manager/ui/widgets/shared/application_item.dart';
class AvailableUpdatesCard extends StatelessWidget {
AvailableUpdatesCard({
Key? key,
}) : super(key: key);
AvailableUpdatesCard({Key? key}) : super(key: key);
final List<PatchedApplication> apps =
locator<HomeViewModel>().patchedUpdatableApps;

View File

@ -7,6 +7,7 @@ class DashboardChip extends StatelessWidget {
final String label;
final bool isSelected;
final Function(bool)? onSelected;
const DashboardChip({
Key? key,
required this.label,

View File

@ -6,9 +6,7 @@ import 'package:revanced_manager/ui/views/home/home_viewmodel.dart';
import 'package:revanced_manager/ui/widgets/shared/application_item.dart';
class InstalledAppsCard extends StatelessWidget {
InstalledAppsCard({
Key? key,
}) : super(key: key);
InstalledAppsCard({Key? key}) : super(key: key);
final List<PatchedApplication> apps =
locator<HomeViewModel>().patchedInstalledApps;

View File

@ -9,11 +9,10 @@ import 'package:revanced_manager/ui/widgets/shared/patch_text_button.dart';
class LatestCommitCard extends StatefulWidget {
final Function() onPressed;
final Color? color;
const LatestCommitCard({
Key? key,
required this.onPressed,
this.color = const Color(0xff1B222B),
}) : super(key: key);
@override
@ -28,7 +27,7 @@ class _LatestCommitCardState extends State<LatestCommitCard> {
return Container(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: widget.color,
color: Theme.of(context).colorScheme.primary,
),
padding: const EdgeInsets.symmetric(vertical: 18, horizontal: 20),
child: Row(