Update header style

This commit is contained in:
Vishnu Mohandas 2021-01-03 15:54:17 +05:30
parent 083dd70565
commit 9fcd4378cc
3 changed files with 38 additions and 32 deletions

View file

@ -9,6 +9,7 @@ import 'package:photos/ui/common_elements.dart';
import 'package:photos/ui/email_entry_page.dart';
import 'package:photos/ui/passphrase_entry_page.dart';
import 'package:photos/ui/passphrase_reentry_page.dart';
import 'package:expansion_card/expansion_card.dart';
class SignInHeader extends StatefulWidget {
const SignInHeader({Key key}) : super(key: key);
@ -98,40 +99,37 @@ class _SignInHeaderState extends State<SignInHeader> {
Padding(
padding: EdgeInsets.all(10),
),
Card(
child: ExpansionTile(
title: Text('protected'),
children: <Widget>[
Padding(
padding: const EdgeInsets.fromLTRB(16, 0, 16, 16),
child: Text(
'only visible to you as they are encrypted by your master key'),
),
],
),
ExpansionCard(
title: Text('protected'),
margin: EdgeInsets.all(0),
children: <Widget>[
Padding(
padding: const EdgeInsets.fromLTRB(16, 0, 16, 16),
child: Text(
'only visible to you as they are encrypted by your master key'),
),
],
),
Card(
child: ExpansionTile(
title: Text('preserved'),
children: <Widget>[
Padding(
padding: const EdgeInsets.fromLTRB(16, 0, 16, 16),
child: Text(
'stored in multiple locations including an underground fallout shelter'),
),
],
),
ExpansionCard(
title: Text('preserved'),
margin: EdgeInsets.all(0),
children: <Widget>[
Padding(
padding: const EdgeInsets.fromLTRB(16, 0, 16, 16),
child: Text(
'stored in multiple locations including an underground fallout shelter'),
),
],
),
Card(
child: ExpansionTile(
title: Text('accessible'),
children: <Widget>[
Padding(
padding: const EdgeInsets.fromLTRB(16, 0, 16, 16),
child: Text('accessible across all your devices'),
),
],
),
ExpansionCard(
title: Text('accessible'),
margin: EdgeInsets.all(0),
children: <Widget>[
Padding(
padding: const EdgeInsets.fromLTRB(16, 0, 16, 16),
child: Text('accessible across all your devices'),
),
],
),
Padding(
padding: EdgeInsets.all(10),

View file

@ -192,6 +192,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.1"
expansion_card:
dependency: "direct main"
description:
name: expansion_card
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
fake_async:
dependency: transitive
description:

View file

@ -70,6 +70,7 @@ dependencies:
url_launcher: ^5.7.10
fluttercontactpicker: ^3.1.0
in_app_purchase: ^0.3.4+16
expansion_card: ^0.1.0
dev_dependencies:
flutter_test: