Blue blue blue

This commit is contained in:
Vishnu Mohandas 2021-01-26 16:56:35 +05:30
parent 3dd227ee3f
commit 70f5fbacd7
4 changed files with 21 additions and 36 deletions

View file

@ -138,12 +138,12 @@ class MyApp extends StatelessWidget with WidgetsBindingObserver {
fontFamily: 'Ubuntu',
brightness: Brightness.dark,
hintColor: Colors.grey,
accentColor: Colors.pink[400],
buttonColor: Colors.pink,
accentColor: Colors.blue[400],
buttonColor: Color(0xFF2954a3),
buttonTheme: ButtonThemeData().copyWith(
buttonColor: Colors.pink,
buttonColor: Color(0xFF2954a3),
),
toggleableActiveColor: Colors.pink[400],
toggleableActiveColor: Colors.blue[400],
),
home: HomeWidget(_title),
);

View file

@ -157,7 +157,7 @@ class SyncService {
await _loadAndStorePhotos(startTime, syncStartTime, existingLocalFileIDs);
}
await FileRepository.instance.reloadFiles();
await syncWithRemote();
// await syncWithRemote();
}
Future<void> _loadAndStorePhotos(

View file

@ -34,16 +34,10 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
@override
Widget build(BuildContext context) {
final appBar = AppBar(
title: Hero(
tag: "sign_up_hero_text",
child: Material(
color: Colors.transparent,
child: Text(
"sign up",
style: TextStyle(
fontSize: 18,
),
),
title: Text(
"sign up",
style: TextStyle(
fontSize: 18,
),
),
);
@ -62,15 +56,11 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
padding: EdgeInsets.all(8),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.max,
children: [
// Image.asset(
// "assets/welcome.png",
// width: 300,
// height: 200,
// ),
Padding(
padding: EdgeInsets.all(32),
padding: EdgeInsets.all(60),
),
Padding(
padding: const EdgeInsets.fromLTRB(32, 0, 32, 0),

View file

@ -40,13 +40,13 @@ class _SignInHeaderState extends State<SignInHeader> {
@override
Widget build(BuildContext context) {
var hasConfiguredAccount = Configuration.instance.hasConfiguredAccount();
var hasSubscribed = BillingService.instance.getSubscription() != null;
var hasSubscribed = BillingService.instance.hasActiveSubscription();
if (hasConfiguredAccount && hasSubscribed) {
return Container();
}
return SingleChildScrollView(
child: Container(
padding: EdgeInsets.fromLTRB(8, 20, 8, 8),
padding: EdgeInsets.fromLTRB(8, 24, 8, 8),
child: Column(
children: [
Text.rich(
@ -71,7 +71,7 @@ class _SignInHeaderState extends State<SignInHeader> {
textAlign: TextAlign.center,
),
Padding(
padding: EdgeInsets.all(6),
padding: EdgeInsets.all(2),
),
Text.rich(
TextSpan(
@ -156,20 +156,15 @@ class _SignInHeaderState extends State<SignInHeader> {
Container(
width: double.infinity,
height: 64,
padding: const EdgeInsets.fromLTRB(80, 0, 80, 0),
child: RaisedButton(
child: Hero(
tag: "sign_up_hero_text",
child: Material(
color: Colors.transparent,
child: Text(
!hasConfiguredAccount ? "sign up" : "subscribe",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 18,
),
textAlign: TextAlign.center,
),
child: Text(
"subscribe",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 18,
),
textAlign: TextAlign.center,
),
onPressed: () {
var page;