Bläddra i källkod

text capitalization

ashilkn 3 år sedan
förälder
incheckning
ca8c2ef9af

+ 5 - 5
lib/ui/email_entry_page.dart

@@ -105,7 +105,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
         floatingActionButton: DynamicFAB(
           isKeypadOpen: isKeypadOpen,
           isFormValid: _isFormValid(),
-          buttonText: 'Create Account',
+          buttonText: 'Create account',
           onPressedFunction: () {
             _config.setVolatilePassword(_passwordController1.text);
             _config.setEmail(_email);
@@ -148,7 +148,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
                     decoration: InputDecoration(
                       fillColor: _emailIsValid ? _validFieldValueColor : null,
                       filled: true,
-                      hintText: 'email',
+                      hintText: 'Email',
                       contentPadding:
                           EdgeInsets.symmetric(horizontal: 16, vertical: 14),
                       border: UnderlineInputBorder(
@@ -193,7 +193,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
                       fillColor:
                           _passwordIsValid ? _validFieldValueColor : null,
                       filled: true,
-                      hintText: "password",
+                      hintText: "Password",
                       contentPadding:
                           EdgeInsets.symmetric(horizontal: 16, vertical: 14),
                       suffixIcon: _password1InFocus
@@ -260,7 +260,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
                           fillColor:
                               _passwordsMatch ? _validFieldValueColor : null,
                           filled: true,
-                          hintText: "confirm password",
+                          hintText: "Confirm password",
                           contentPadding: EdgeInsets.symmetric(
                               horizontal: 16, vertical: 14),
                           suffixIcon: _password2InFocus
@@ -372,7 +372,7 @@ class _EmailEntryPageState extends State<EmailEntryPage> {
                                                   //             ),
                                                   // ),
                                                   Text(
-                                                    'Password Strength: $passwordStrengthText',
+                                                    'Password strength: $passwordStrengthText',
                                                     style: TextStyle(
                                                         color:
                                                             passwordStrengthColor),

+ 2 - 2
lib/ui/grant_permissions_widget.dart

@@ -28,7 +28,7 @@ class GrantPermissionsWidget extends StatelessWidget {
               Padding(
                 padding: const EdgeInsets.symmetric(horizontal: 20),
                 child: Text(
-                  'ente needs your permission to access gallery',
+                  'Ente needs your permission to access gallery',
                   style: Theme.of(context)
                       .textTheme
                       .headline4
@@ -42,7 +42,7 @@ class GrantPermissionsWidget extends StatelessWidget {
             padding: EdgeInsets.only(
                 left: 20, right: 20, bottom: Platform.isIOS ? 60 : 32),
             child: OutlinedButton(
-              child: Text("Grant Permission"),
+              child: Text("Grant permission"),
               onPressed: () async {
                 final state = await PhotoManager.requestPermissionExtend();
                 if (state == PermissionState.authorized ||

+ 8 - 20
lib/ui/landing_page_widget.dart

@@ -35,7 +35,7 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {
               TextSpan(
                 children: const <TextSpan>[
                   TextSpan(
-                    text: "with ",
+                    text: "With ",
                     style: TextStyle(
                       fontSize: 16,
                     ),
@@ -105,7 +105,7 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {
                   style:
                       Theme.of(context).colorScheme.optionalActionButtonStyle,
                   child: Text(
-                    "Existing User",
+                    "Existing user",
                   ),
                   onPressed: _navigateToSignInPage,
                 ),
@@ -139,18 +139,6 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {
         onTap: _navigateToSignUpPage,
       ),
     );
-    // return Container(
-    //   width: double.infinity,
-    //   padding: EdgeInsets.symmetric(horizontal: 24),
-    // child: ElevatedButton(
-    //   style: Theme.of(context).colorScheme.primaryActionButtonStyle,
-    //   child: Hero(
-    //     tag: "sign_up",
-    //     child: Text("New to ente"),
-    //   ),
-    //   onPressed: _navigateToSignUpPage,
-    // ),
-    //);
   }
 
   Widget _getFeatureSlider() {
@@ -160,15 +148,15 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {
         children: const [
           FeatureItemWidget(
               "assets/protected.png",
-              "protected",
-              "end-to-end encrypted with your password,",
+              "Protected",
+              "End-to-end encrypted with your password,",
               "visible only to you"),
-          FeatureItemWidget("assets/synced.png", "synced",
-              "available across all your devices,", "web, android and ios"),
+          FeatureItemWidget("assets/synced.png", "Synced",
+              "Available across all your devices,", "web, android and ios"),
           FeatureItemWidget(
               "assets/preserved.png",
-              "preserved",
-              "reliably replicated to a fallout shelter,",
+              "Preserved",
+              "Reliably replicated to a fallout shelter,",
               "designed to outlive"),
         ],
         onPageChanged: (index) {

+ 1 - 1
lib/ui/login_page.dart

@@ -83,7 +83,7 @@ class _LoginPageState extends State<LoginPage> {
                   decoration: InputDecoration(
                     fillColor: _emailInputFieldColor,
                     filled: true,
-                    hintText: 'email',
+                    hintText: 'Email',
                     contentPadding:
                         EdgeInsets.symmetric(horizontal: 15, vertical: 15),
                     border: UnderlineInputBorder(

+ 1 - 1
lib/ui/ott_verification_page.dart

@@ -157,7 +157,7 @@ class _OTTVerificationPageState extends State<OTTVerificationPage> {
                 style: Theme.of(context).textTheme.subtitle1,
                 decoration: InputDecoration(
                   filled: true,
-                  hintText: 'tap to enter code',
+                  hintText: 'Tap to enter code',
                   contentPadding: EdgeInsets.all(15),
                   border: UnderlineInputBorder(
                       borderSide: BorderSide.none,

+ 2 - 34
lib/ui/password_reentry_page.dart

@@ -1,5 +1,4 @@
 import 'package:flutter/material.dart';
-import 'package:flutter/widgets.dart';
 import 'package:logging/logging.dart';
 import 'package:photos/core/configuration.dart';
 import 'package:photos/core/event_bus.dart';
@@ -98,7 +97,7 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
                 child: TextFormField(
                   autofillHints: [AutofillHints.password],
                   decoration: InputDecoration(
-                    hintText: "enter your password",
+                    hintText: "Enter your password",
                     filled: true,
                     contentPadding: EdgeInsets.all(20),
                     border: UnderlineInputBorder(
@@ -159,7 +158,7 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
                       },
                       child: Container(
                         child: Center(
-                          child: Text("forgot password",
+                          child: Text("Forgot password",
                               style: Theme.of(context)
                                   .textTheme
                                   .subtitle1
@@ -198,37 +197,6 @@ class _PasswordReentryPageState extends State<PasswordReentryPage> {
             ],
           ),
         ),
-        // Padding(padding: EdgeInsets.all(12)),
-        // Container(
-        //   padding: const EdgeInsets.symmetric(horizontal: 60),
-        //   width: double.infinity,
-        //   height: 64,
-        //   child: OutlinedButton(
-        //     child: Text("log in"),
-        //     onPressed: _passwordController.text.isNotEmpty
-        //         ? () async {
-        //             final dialog =
-        //                 createProgressDialog(context, "Please wait...");
-        //             await dialog.show();
-        //             try {
-        //               await Configuration.instance.decryptAndSaveSecrets(
-        //                   _passwordController.text,
-        //                   Configuration.instance.getKeyAttributes());
-        //             } catch (e) {
-        //               Logger("PRP").warning(e);
-        //               await dialog.hide();
-        //               showErrorDialog(
-        //                   context, "incorrect password", "please try again");
-        //               return;
-        //             }
-        //             await dialog.hide();
-        //             Bus.instance.fire(SubscriptionPurchasedEvent());
-        //             Navigator.of(context).popUntil((route) => route.isFirst);
-        //           }
-        //         : null,
-        //   ),
-        // ),
-        // Padding(padding: EdgeInsets.all(30)),
       ],
     );
   }

+ 2 - 2
lib/ui/payment/stripe_subscription_page.dart

@@ -449,7 +449,7 @@ class _StripeSubscriptionPageState extends State<StripeSubscriptionPage> {
       child: Row(
         mainAxisAlignment: MainAxisAlignment.center,
         children: [
-          _planText("monthly", _showYearlyPlan),
+          _planText("Monthly", _showYearlyPlan),
           Switch(
             value: _showYearlyPlan,
             activeColor: Colors.white,
@@ -459,7 +459,7 @@ class _StripeSubscriptionPageState extends State<StripeSubscriptionPage> {
               await _filterStripeForUI();
             },
           ),
-          _planText("yearly", !_showYearlyPlan)
+          _planText("Yearly", !_showYearlyPlan)
         ],
       ),
     );

+ 2 - 7
lib/ui/payment/subscription_common_widgets.dart

@@ -26,13 +26,8 @@ class _SubscriptionHeaderWidgetState extends State<SubscriptionHeaderWidget> {
       return Padding(
         padding: const EdgeInsets.fromLTRB(20, 20, 20, 24),
         child: Text(
-          "ente preserves your memories, so they're always available to you, even if you lose your device",
-          style: Theme.of(context).textTheme.caption
-          /*style: TextStyle(
-            color: Colors.white54,
-            height: 1.2,
-          )*/
-          ,
+          "Ente preserves your memories, so they're always available to you, even if you lose your device",
+          style: Theme.of(context).textTheme.caption,
         ),
       );
     } else {

+ 1 - 1
lib/ui/recovery_key_page.dart

@@ -167,7 +167,7 @@ class _RecoveryKeyPageState extends State<RecoveryKeyPage> {
 
     childrens.add(GradientButton(
       child: Text(
-        'Save Key',
+        'Save key',
         style: gradientButtonTextTheme(),
       ),
       linearGradientColors: const [

+ 3 - 3
lib/ui/recovery_page.dart

@@ -71,7 +71,7 @@ class _RecoveryPageState extends State<RecoveryPage> {
                 Padding(
                   padding:
                       const EdgeInsets.symmetric(vertical: 30, horizontal: 20),
-                  child: Text('Forgot Password',
+                  child: Text('Forgot password',
                       style: Theme.of(context).textTheme.headline4),
                 ),
                 Padding(
@@ -79,7 +79,7 @@ class _RecoveryPageState extends State<RecoveryPage> {
                   child: TextFormField(
                     decoration: InputDecoration(
                       filled: true,
-                      hintText: "enter your recovery key",
+                      hintText: "Enter your recovery key",
                       contentPadding: EdgeInsets.all(20),
                       border: UnderlineInputBorder(
                           borderSide: BorderSide.none,
@@ -120,7 +120,7 @@ class _RecoveryPageState extends State<RecoveryPage> {
                         padding: EdgeInsets.symmetric(horizontal: 20),
                         child: Center(
                           child: Text(
-                            "no recovery key?",
+                            "No recovery key?",
                             style: Theme.of(context)
                                 .textTheme
                                 .subtitle1