First draft of Onboarding page

This commit is contained in:
2025-11-13 19:33:58 +01:00
parent 037b8136d9
commit da52453371
22 changed files with 371 additions and 14 deletions

View File

@@ -0,0 +1,46 @@
import 'package:flutter/material.dart';
class OnboardingTile extends StatelessWidget {
final title, imagePath, mainText;
OnboardingTile({this.imagePath, this.mainText, this.title});
@override
Widget build(BuildContext context) {
final screenWidth = MediaQuery.of(context).size.width;
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 24),
child: Column(
children: [
const SizedBox(height: 34),
Expanded(
child: Image.asset(
imagePath,
),
),
const SizedBox(height: 65),
Text(
title,
style: TextStyle(
fontWeight: FontWeight.w700,
fontSize: 24.0,
),
),
const SizedBox(height: 15),
Padding(
padding: EdgeInsets.symmetric(
horizontal: screenWidth / 100,
),
child: Text(
mainText,
style: TextStyle(
fontSize: 16.0,
),
textAlign: TextAlign.center,
),
),
],
),
);
}
}