mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-30 14:04:26 +02:00
feat: expandable card for social media cards.
This commit is contained in:
parent
cb2b405b3f
commit
06b90244b4
@ -45,6 +45,9 @@
|
||||
"widgetSubtitle": "Select an application first.",
|
||||
"widgetEmptySubtitle": "No patches selected."
|
||||
},
|
||||
"socialMediaCards": {
|
||||
"widgetTitle": "Social Media"
|
||||
},
|
||||
"appSelectorView": {
|
||||
"searchBarHint": "Search applications",
|
||||
"fabButton": "Storage",
|
||||
|
@ -1,4 +1,7 @@
|
||||
import 'package:expandable/expandable.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_i18n/widgets/I18nText.dart';
|
||||
import 'package:revanced_manager/constants.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class SocialMediaCards extends StatelessWidget {
|
||||
@ -6,7 +9,22 @@ class SocialMediaCards extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Card(
|
||||
return ExpandablePanel(
|
||||
theme: ExpandableThemeData(
|
||||
hasIcon: true,
|
||||
iconColor: Theme.of(context).iconTheme.color,
|
||||
animationDuration: const Duration(milliseconds: 450),
|
||||
),
|
||||
header: SizedBox(
|
||||
width: double.infinity,
|
||||
child: ListTile(
|
||||
title: I18nText(
|
||||
'socialMediaCards.widgetTitle',
|
||||
child: Text('', style: kSettingItemTextStyle),
|
||||
),
|
||||
),
|
||||
),
|
||||
expanded: Card(
|
||||
color: Theme.of(context).backgroundColor,
|
||||
child: Column(
|
||||
children: [
|
||||
@ -121,6 +139,8 @@ class SocialMediaCards extends StatelessWidget {
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
collapsed: const Text(""),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user