TKK_E32230211/lib/app/modules/onboarding/views/onboarding_view.dart

94 lines
2.8 KiB
Dart

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../controllers/onboarding_controller.dart';
class OnboardingView extends GetView<OnboardingController> {
const OnboardingView({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xFF5B9BD5),
body: SafeArea(
child: Stack(
children: [
// Background subtle circle decoration (top right)
Positioned(
top: -60,
right: -60,
child: Container(
width: 200,
height: 200,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.white.withOpacity(0.07),
),
),
),
// Background subtle circle decoration (bottom left)
Positioned(
bottom: -80,
left: -40,
child: Container(
width: 220,
height: 220,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Colors.white.withOpacity(0.07),
),
),
),
// Main content (Center widget to center the logo and text)
Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(
Icons.account_balance_wallet_outlined,
size: 120,
color: Colors.white,
),
const SizedBox(height: 12),
const Text(
'TABUNGANKUY',
style: TextStyle(
color: Colors.white,
fontSize: 22,
fontWeight: FontWeight.w800,
letterSpacing: 3,
),
),
],
),
),
// Arrow button in the bottom right corner (keeps its position)
Positioned(
right: 32,
bottom: 32,
child: GestureDetector(
onTap: controller.goToNavbar,
child: Container(
width: 60,
height: 60,
decoration: const BoxDecoration(
shape: BoxShape.circle,
color: Colors.white,
),
child: const Icon(
Icons.arrow_forward,
color: Color(0xFF5B9BD5),
size: 28,
),
),
),
),
],
),
),
);
}
}