Files
daily_mobileapp_merchant/lib/View/Success/Successview.dart
2026-05-27 10:35:09 +05:30

67 lines
2.0 KiB
Dart

import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:lottie/lottie.dart';
import '../../Globalwidgets/textwidget.dart';
import '../../Helper/Constants/Colorconstants.dart';
import '../Home/Homeview.dart';
class AccountCreatedScreen extends StatelessWidget {
const AccountCreatedScreen({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: Center(
child: Padding(
padding: const EdgeInsets.all(24.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Lottie.asset(
'assets/success.json',
width: 200,
height: 200,
repeat: false,
),
const SizedBox(height: 30),
const TextWidget(
text: "Account Created Successfully!",
fontSize: 22,
fontWeight: FontWeight.w700,
textAlign: TextAlign.center,
),
const SizedBox(height: 20),
const TextWidget(
text: "You can now start using the app.",
fontSize: 16,
textAlign: TextAlign.center,
),
const SizedBox(height: 40),
ElevatedButton(
onPressed: () {
Get.off(() => HomeView(
key: UniqueKey(),
selectedIndex: 0,
));
},
style: ElevatedButton.styleFrom(
padding: const EdgeInsets.symmetric(horizontal: 40, vertical: 12),
backgroundColor: ColorConstants.primaryColor,
),
child: const Text(
"Continue",
style: TextStyle(fontSize: 16),
),
)
],
),
),
),
);
}
}