Browse Source

Minor refactor

Neeraj Gupta 2 years ago
parent
commit
a58c7e509e
1 changed files with 3 additions and 9 deletions
  1. 3 9
      lib/ui/growth/code_success_screen.dart

+ 3 - 9
lib/ui/growth/code_success_screen.dart

@@ -78,11 +78,7 @@ class CodeSuccessScreen extends StatelessWidget {
                               ),
                           style: textStyle.h2Bold,
                         ),
-                        Text(
-                          S.of(context).claimed,
-                          style: textStyle.body
-                              .copyWith(color: colorScheme.textMuted),
-                        ),
+                        Text(S.of(context).claimed, style: textStyle.bodyMuted),
                         const SizedBox(height: 32),
                         MenuItemWidget(
                           captionedTextWidget: CaptionedTextWidget(
@@ -138,8 +134,7 @@ class CodeSuccessScreen extends StatelessWidget {
                                     S.of(context).freeStorageOnReferralSuccess(
                                           referralView.planInfo.storageInGB,
                                         ),
-                                    style: textStyle.small
-                                        .copyWith(color: colorScheme.textMuted),
+                                    style: textStyle.smallMuted,
                                     textAlign: TextAlign.center,
                                   ),
                                   const SizedBox(height: 16),
@@ -149,8 +144,7 @@ class CodeSuccessScreen extends StatelessWidget {
                                     S.of(context).theyAlsoGetXGb(
                                           referralView.planInfo.storageInGB,
                                         ),
-                                    style: textStyle.small
-                                        .copyWith(color: colorScheme.textMuted),
+                                    style: textStyle.smallMuted,
                                     textAlign: TextAlign.center,
                                   ),
                                 ],