From 1c5269d0bed668f579fa5ca6dfa93464fadd8dc8 Mon Sep 17 00:00:00 2001 From: eightgran Date: Thu, 15 Jul 2021 22:19:22 +0200 Subject: [PATCH] Rename `ConfirmAgeScreen` --- CHANGELOG.md | 2 ++ example/lib/main.dart | 2 +- lib/screens.dart | 2 +- ...m_age_screen.dart => lit_confirm_age_screen.dart} | 12 ++++++------ 4 files changed, 10 insertions(+), 8 deletions(-) rename lib/src/screens/{confirm_age_screen.dart => lit_confirm_age_screen.dart} (98%) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7ed96e..4567a23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ - Allow custom padding on `LitOnboardingScreen`. - Add `LitTextPageView` widget to display a list of cards with a tranition animation. - Add `LitPrivacyDisclaimerScreen`. +- Add `LitBoxShadows`, a collection of styled box shadows. +- Rename `ConfirmAgeScreen` to `LitConfirmAgeScreen`. ## 1.1.0 diff --git a/example/lib/main.dart b/example/lib/main.dart index 5e2435e..c3c2eb7 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -526,7 +526,7 @@ class _ButtonList extends StatelessWidget { ), onPressed: () => { LitRouteController(context).pushCupertinoWidget( - ConfirmAgeScreen( + LitConfirmAgeScreen( onSubmit: (date) { print("ConfirmAgeScreen-submitted date: $date"); LitRouteController(context).pop(); diff --git a/lib/screens.dart b/lib/screens.dart index 6f8c069..80cd73a 100644 --- a/lib/screens.dart +++ b/lib/screens.dart @@ -13,6 +13,6 @@ export 'src/screens/lit_offline_app_disclaimer_screen.dart'; export 'src/screens/lit_credits_screen.dart'; export 'src/screens/lit_sign_up_screen.dart'; export 'src/screens/photosensitive_disclaimer_screen.dart'; -export 'src/screens/confirm_age_screen.dart'; +export 'src/screens/lit_confirm_age_screen.dart'; export 'src/screens/lit_startup_screen.dart'; export 'src/screens/lit_privacy_disclaimer_screen.dart'; diff --git a/lib/src/screens/confirm_age_screen.dart b/lib/src/screens/lit_confirm_age_screen.dart similarity index 98% rename from lib/src/screens/confirm_age_screen.dart rename to lib/src/screens/lit_confirm_age_screen.dart index 4791193..200e1b5 100644 --- a/lib/src/screens/confirm_age_screen.dart +++ b/lib/src/screens/lit_confirm_age_screen.dart @@ -6,9 +6,9 @@ import 'package:lit_ui_kit/lit_ui_kit.dart'; /// Age requirements vary depending on the user's location. In most cases, using /// apps downloaded on app stores require the user to be at least 13 years old. /// -/// The [ConfirmAgeScreen] implements a very basic child protection on the first +/// The [LitConfirmAgeScreen] implements a very basic child protection on the first /// startup. -class ConfirmAgeScreen extends StatefulWidget { +class LitConfirmAgeScreen extends StatefulWidget { /// The age requirement (in years). final int ageRequirement; @@ -41,7 +41,7 @@ class ConfirmAgeScreen extends StatefulWidget { final String chooseDateLabel; - /// Creates a [ConfirmAgeScreen]. + /// Creates a [LitConfirmAgeScreen]. /// /// * [ageRequirement] is the required age in years. /// @@ -64,7 +64,7 @@ class ConfirmAgeScreen extends StatefulWidget { /// * [validLabel] is the 'valid' text. /// /// * [chooseDateLabel] is the [LitDatePickerDialog]'s title. - const ConfirmAgeScreen({ + const LitConfirmAgeScreen({ Key? key, this.ageRequirement = 13, this.invalidAgeText = @@ -80,10 +80,10 @@ class ConfirmAgeScreen extends StatefulWidget { this.chooseDateLabel = "Choose date", }) : super(key: key); @override - _ConfirmAgeScreenState createState() => _ConfirmAgeScreenState(); + _LitConfirmAgeScreenState createState() => _LitConfirmAgeScreenState(); } -class _ConfirmAgeScreenState extends State { +class _LitConfirmAgeScreenState extends State { /// The user's date of birth stored as a [DateTime]. DateTime? _dateOfBirth;