Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Rename ConfirmAgeScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
eightgran committed Jul 15, 2021
1 parent 9f6a74e commit 1c5269d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ class _ButtonList extends StatelessWidget {
),
onPressed: () => {
LitRouteController(context).pushCupertinoWidget(
ConfirmAgeScreen(
LitConfirmAgeScreen(
onSubmit: (date) {
print("ConfirmAgeScreen-submitted date: $date");
LitRouteController(context).pop();
Expand Down
2 changes: 1 addition & 1 deletion lib/screens.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -41,7 +41,7 @@ class ConfirmAgeScreen extends StatefulWidget {

final String chooseDateLabel;

/// Creates a [ConfirmAgeScreen].
/// Creates a [LitConfirmAgeScreen].
///
/// * [ageRequirement] is the required age in years.
///
Expand All @@ -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 =
Expand All @@ -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<ConfirmAgeScreen> {
class _LitConfirmAgeScreenState extends State<LitConfirmAgeScreen> {
/// The user's date of birth stored as a [DateTime].
DateTime? _dateOfBirth;

Expand Down

0 comments on commit 1c5269d

Please sign in to comment.