Add a link to "how it works"

This commit is contained in:
Vishnu Mohandas 2021-03-28 17:09:26 +05:30
parent 0f4d082048
commit e42d478aa3

View file

@ -1,8 +1,13 @@
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_markdown/flutter_markdown.dart';
import 'package:flutter_password_strength/flutter_password_strength.dart';
import 'package:photos/core/network.dart';
import 'package:photos/services/user_service.dart';
import 'package:photos/ui/common_elements.dart';
import 'package:photos/ui/loading_widget.dart';
import 'package:photos/ui/subscription_page.dart';
import 'package:photos/ui/web_page.dart';
import 'package:photos/utils/dialog_util.dart';
class PasswordEntryPage extends StatefulWidget {
@ -43,8 +48,7 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
_passwordStrength = strength;
},
),
Expanded(
child: SingleChildScrollView(
SingleChildScrollView(
child: Container(
padding: EdgeInsets.fromLTRB(16, 36, 16, 16),
child: Column(
@ -137,11 +141,36 @@ class _PasswordEntryPageState extends State<PasswordEntryPage> {
}
}
: null,
)),
),
),
],
),
),
),
Expanded(child: Container()),
GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (BuildContext context) {
return WebPage("how it works", "https://ente.io/encryption");
},
),
);
},
child: Container(
padding: EdgeInsets.all(40),
child: RichText(
text: TextSpan(
text: "how it works",
style: TextStyle(
color: Colors.blue,
fontFamily: 'Ubuntu',
),
),
),
),
),
],
);