Skip to content

Commit

Permalink
fix: #3
Browse files Browse the repository at this point in the history
  • Loading branch information
popoway committed Nov 23, 2023
1 parent abac606 commit 325233b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 7 deletions.
48 changes: 42 additions & 6 deletions lib/onboarding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ class _OnboardingPageState extends State<OnboardingPage> {
],
),
),
const SizedBox(height: 48),
SizedBox(
height:
MediaQuery.of(context).size.height < 700 ? 24 : 48),
AnimatedOpacity(
opacity: widget2Opacity,
duration: const Duration(seconds: 1),
Expand All @@ -208,7 +210,17 @@ class _OnboardingPageState extends State<OnboardingPage> {
FlutterI18n.translate(
context, "onboarding.prompt1a"),
style: TextStyle(
fontSize: 24,
fontSize: MediaQuery.of(context)
.size
.width <
380
? MediaQuery.of(context)
.size
.width <
330
? 18
: 20
: 24,
color: const CupertinoDynamicColor
.withBrightness(
color: CupertinoColors.black,
Expand Down Expand Up @@ -239,7 +251,9 @@ class _OnboardingPageState extends State<OnboardingPage> {
],
),
),
const SizedBox(height: 48),
SizedBox(
height:
MediaQuery.of(context).size.height < 700 ? 24 : 48),
AnimatedOpacity(
opacity: widget3Opacity,
duration: const Duration(seconds: 1),
Expand All @@ -263,7 +277,17 @@ class _OnboardingPageState extends State<OnboardingPage> {
FlutterI18n.translate(
context, "onboarding.prompt2a"),
style: TextStyle(
fontSize: 24,
fontSize: MediaQuery.of(context)
.size
.width <
380
? MediaQuery.of(context)
.size
.width <
330
? 18
: 20
: 24,
color: const CupertinoDynamicColor
.withBrightness(
color: CupertinoColors.black,
Expand Down Expand Up @@ -294,7 +318,9 @@ class _OnboardingPageState extends State<OnboardingPage> {
],
),
),
const SizedBox(height: 48),
SizedBox(
height:
MediaQuery.of(context).size.height < 700 ? 24 : 48),
AnimatedOpacity(
opacity: widget4Opacity,
duration: const Duration(seconds: 1),
Expand All @@ -317,7 +343,17 @@ class _OnboardingPageState extends State<OnboardingPage> {
FlutterI18n.translate(
context, "onboarding.prompt3a"),
style: TextStyle(
fontSize: 24,
fontSize: MediaQuery.of(context)
.size
.width <
380
? MediaQuery.of(context)
.size
.width <
330
? 18
: 20
: 24,
color: const CupertinoDynamicColor
.withBrightness(
color: CupertinoColors.black,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.1.1+24
version: 1.1.1+25

environment:
sdk: '>=3.1.0 <4.0.0'
Expand Down

0 comments on commit 325233b

Please sign in to comment.