فهرست منبع

[copy change] CTA from "sign in" -> "log in"

Also, fixed rendering of sign up button (thanks to Vishnu)
Neeraj Gupta 4 سال پیش
والد
کامیت
b7c7b6259f
3فایلهای تغییر یافته به همراه8 افزوده شده و 9 حذف شده
  1. 3 4
      lib/ui/landing_page_widget.dart
  2. 4 4
      lib/ui/login_page.dart
  3. 1 1
      lib/ui/password_reentry_page.dart

+ 3 - 4
lib/ui/landing_page_widget.dart

@@ -105,11 +105,11 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {
                 padding: EdgeInsets.all(28),
                 child: Center(
                   child: Hero(
-                    tag: "sign_in",
+                    tag: "log_in",
                     child: Material(
                       type: MaterialType.transparency,
                       child: Text(
-                        "sign in",
+                        "log in",
                         style: TextStyle(
                           fontWeight: FontWeight.bold,
                           fontSize: 16,
@@ -133,8 +133,7 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {
 
   Container _getSignUpButton(BuildContext context) {
     return Container(
-      padding: EdgeInsets.only(left: 80, right: 80),
-      width: double.infinity,
+      width: 180,
       height: 64,
       child: OutlinedButton(
         style: OutlinedButton.styleFrom(

+ 4 - 4
lib/ui/login_page.dart

@@ -31,11 +31,11 @@ class _LoginPageState extends State<LoginPage> {
     return Scaffold(
       appBar: AppBar(
         title: Hero(
-          tag: "sign_in",
+          tag: "log_in",
           child: Material(
             type: MaterialType.transparency,
             child: Text(
-              "sign in",
+              "log in",
               style: TextStyle(
                 fontSize: 16,
                 letterSpacing: 0.6,
@@ -82,7 +82,7 @@ class _LoginPageState extends State<LoginPage> {
             text: TextSpan(
               children: [
                 TextSpan(
-                  text: "by clicking sign in, I agree to the ",
+                  text: "by clicking log in, I agree to the ",
                 ),
                 TextSpan(
                   text: "terms of service",
@@ -137,7 +137,7 @@ class _LoginPageState extends State<LoginPage> {
           height: 64,
           padding: const EdgeInsets.fromLTRB(80, 0, 80, 0),
           child: button(
-            "sign in",
+            "log in",
             onPressed: _email != null && _email.isNotEmpty
                 ? () {
                     if (!isValidEmail(_email)) {

+ 1 - 1
lib/ui/password_reentry_page.dart

@@ -92,7 +92,7 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
           width: double.infinity,
           height: 64,
           child: button(
-            "sign in",
+            "log in",
             fontSize: 18,
             onPressed: _passwordController.text.isNotEmpty
                 ? () async {