69 lines
2.0 KiB
Dart
69 lines
2.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_svg/svg.dart';
|
|
import 'package:sf_app_platform/payments/view/screens/link_phone_screen.dart';
|
|
import 'package:sf_app_platform/payments/view/screens/signup/signup_screen.dart';
|
|
|
|
import 'core/dashboard_screen.dart';
|
|
|
|
class WelcomeScreen extends StatelessWidget {
|
|
const WelcomeScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold( body: Center(
|
|
child:Column(
|
|
children:[
|
|
Spacer(),
|
|
Expanded(
|
|
child: CarouselView(
|
|
scrollDirection: Axis.horizontal,
|
|
itemExtent: double.infinity,
|
|
itemSnapping: true,
|
|
shrinkExtent: 400,
|
|
children: generateSteps(),
|
|
)
|
|
),
|
|
FilledButton(onPressed: ()=>{jumpToNext(context)}, child: const Text('Continuar')),
|
|
Spacer()
|
|
]
|
|
),
|
|
));
|
|
}
|
|
|
|
void jumpToNext(BuildContext context){
|
|
Navigator.pushReplacement(
|
|
context,
|
|
MaterialPageRoute(
|
|
builder: (_) => LinkPhoneScreen(),
|
|
),
|
|
);
|
|
return;
|
|
}
|
|
|
|
List<Widget> generateSteps(){
|
|
return [
|
|
Column(
|
|
spacing: 30,
|
|
children: [
|
|
SvgPicture.asset("assets/images/ui/bienvenida_paso1.svg"),
|
|
Text("Aprende a gestionar su dinero", style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20),),
|
|
Text("Tu peque crea hábitos y se divierte mientras lo hace")
|
|
]
|
|
),
|
|
Column(
|
|
children: [
|
|
SvgPicture.asset("assets/images/ui/bienvenida_paso2.svg"),
|
|
Text("Tranquilidad en cada pago que hacen"),
|
|
Text("Supervisa gastos, fija límites y acompáñalos en cada paso")
|
|
]
|
|
),
|
|
Column(
|
|
children: [
|
|
SvgPicture.asset("assets/images/ui/bienvenida_paso3.svg"),
|
|
Text("Pagos fáciles y seguros en sus manos"),
|
|
Text("Podrá pagar desde su reloj.\n Sin móvil ni efectivo")
|
|
]
|
|
),
|
|
];
|
|
}
|
|
} |