mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-02-02 14:16:58 +00:00
fix(ui): Make onboarding screen more adaptive
This commit is contained in:
parent
e186dac39f
commit
c8bc75d422
|
@ -45,7 +45,9 @@ class _OnboardingPageState extends State<OnboardingPage> {
|
|||
maxHeight: MediaQuery.of(context).size.height,
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Expanded(
|
||||
child: ListView(
|
||||
children: [
|
||||
const SizedBox(height: 30),
|
||||
Text(
|
||||
|
@ -57,7 +59,7 @@ class _OnboardingPageState extends State<OnboardingPage> {
|
|||
'onboarding.page1_text'.tr(),
|
||||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
const SizedBox(height: 32),
|
||||
Flexible(
|
||||
child: Center(
|
||||
child: Image.asset(
|
||||
|
@ -70,6 +72,9 @@ class _OnboardingPageState extends State<OnboardingPage> {
|
|||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
BrandButton.rised(
|
||||
onPressed: () {
|
||||
pageController.animateToPage(
|
||||
|
@ -90,7 +95,9 @@ class _OnboardingPageState extends State<OnboardingPage> {
|
|||
maxHeight: MediaQuery.of(context).size.height,
|
||||
),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Expanded(
|
||||
child: ListView(
|
||||
children: [
|
||||
const SizedBox(height: 30),
|
||||
Text(
|
||||
|
@ -133,6 +140,9 @@ class _OnboardingPageState extends State<OnboardingPage> {
|
|||
style: Theme.of(context).textTheme.bodyMedium,
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
],
|
||||
),
|
||||
),
|
||||
BrandButton.rised(
|
||||
onPressed: () {
|
||||
context.read<AppSettingsCubit>().turnOffOnboarding();
|
||||
|
|
Loading…
Reference in a new issue