π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use native expansion tiles for billing FAQs
Neeraj Gupta8da5387a2795
diff --git a/mobile/apps/photos/lib/ui/payment/billing_questions_widget.dart b/mobile/apps/photos/lib/ui/payment/billing_questions_widget.dartindex 599e33822e..8095cf4bcb 100644--- a/mobile/apps/photos/lib/ui/payment/billing_questions_widget.dart+++ b/mobile/apps/photos/lib/ui/payment/billing_questions_widget.dart@@ -1,6 +1,5 @@import 'dart:convert';-import 'package:expansion_tile_card/expansion_tile_card.dart';import 'package:flutter/material.dart';import 'package:photos/core/network/network.dart';import 'package:photos/ente_theme_data.dart';@@ -54,13 +53,26 @@ class FaqWidget extends StatelessWidget {@overrideWidget build(BuildContext context) {+ final theme = Theme.of(context);+ final expandedColor = theme.colorScheme.greenAlternative;+ const shape = RoundedRectangleBorder(+ borderRadius: BorderRadius.all(Radius.circular(8)),+ );+return Padding(padding: const EdgeInsets.all(2),- child: ExpansionTileCard(- elevation: 0,+ child: ExpansionTile(+ key: PageStorageKey(faq!.q),title: Text(faq!.q!),- expandedTextColor: Theme.of(context).colorScheme.greenAlternative,- baseColor: Theme.of(context).cardColor,+ tilePadding: const EdgeInsets.symmetric(horizontal: 18),+ textColor: expandedColor,+ collapsedTextColor: theme.textTheme.titleMedium?.color,+ iconColor: expandedColor,+ collapsedIconColor: theme.unselectedWidgetColor,+ backgroundColor: theme.cardColor,+ collapsedBackgroundColor: theme.cardColor,+ shape: shape,+ collapsedShape: shape,children: [Padding(padding: const EdgeInsets.only(left: 16, right: 16, bottom: 12),diff --git a/mobile/apps/photos/pubspec.yaml b/mobile/apps/photos/pubspec.yamlindex 6186511c7b..d0d285086e 100644--- a/mobile/apps/photos/pubspec.yaml+++ b/mobile/apps/photos/pubspec.yaml@@ -89,7 +89,6 @@ dependencies:equatable: 2.0.7event_bus: 2.0.1exif_reader: 4.1.0- expansion_tile_card: 3.0.0extended_image: 9.1.0fade_indexed_stack: 0.2.2fast_base58: 0.2.1diff --git a/mobile/pubspec.lock b/mobile/pubspec.lockindex 106dc4e99d..43b2570681 100644--- a/mobile/pubspec.lock+++ b/mobile/pubspec.lock@@ -659,14 +659,6 @@ packages:url: "https://pub.dev"source: hostedversion: "5.0.1"- expansion_tile_card:- dependency: transitive- description:- name: expansion_tile_card- sha256: "27ce4cb518f00e21d0f2309aaa6462b26b148e93cee2029a73088cecf42b1eb0"- url: "https://pub.dev"- source: hosted- version: "3.0.0"extended_image:dependency: transitivedescription: