166 lines
5.9 KiB
Dart
166 lines
5.9 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:traderscircuit/Utils/Common/commonBotton.dart';
|
|
import 'package:traderscircuit/resources/routes/route_name.dart';
|
|
import 'package:traderscircuit/view/onBoarding/splashScreen1.dart';
|
|
|
|
class Sliderscreen2 extends StatefulWidget {
|
|
const Sliderscreen2({super.key});
|
|
|
|
@override
|
|
State<Sliderscreen2> createState() => _Sliderscreen2State();
|
|
}
|
|
|
|
class _Sliderscreen2State extends State<Sliderscreen2>
|
|
with SingleTickerProviderStateMixin {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: Colors.black,
|
|
extendBody: true,
|
|
body: Stack(
|
|
children: [
|
|
CommonBlurLeft(),
|
|
CommonBlurRight(),
|
|
Stack(
|
|
children: [
|
|
Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 16, vertical: 16),
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
SizedBox(
|
|
height: 20,
|
|
),
|
|
Row(
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
children: [
|
|
GestureDetector(
|
|
onTap: () {
|
|
Get.toNamed('/sliderscreen3');
|
|
},
|
|
child: Text(
|
|
'Skip',
|
|
style: TextStyle(
|
|
fontFamily: 'hiragino',
|
|
color: Colors.white,
|
|
fontSize: 18,
|
|
fontWeight: FontWeight.w500,
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
SizedBox(
|
|
height: 20,
|
|
),
|
|
Image.asset(
|
|
'assets/images/png/slider2.png',
|
|
// width: 300.w,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Positioned(
|
|
bottom: 0,
|
|
child: Container(
|
|
width: 390.w,
|
|
height: 300.h,
|
|
decoration: BoxDecoration(
|
|
color: Colors.black,
|
|
borderRadius: BorderRadius.only(
|
|
topLeft: Radius.circular(30),
|
|
topRight: Radius.circular(30),
|
|
),
|
|
boxShadow: [
|
|
BoxShadow(
|
|
color: Color(0xffAFAFAF),
|
|
offset: const Offset(
|
|
5.0,
|
|
5.0,
|
|
),
|
|
blurRadius: 10.0,
|
|
spreadRadius: 2.5,
|
|
),
|
|
],
|
|
),
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(20),
|
|
child: Column(
|
|
children: [
|
|
RichText(
|
|
text: const TextSpan(
|
|
text:
|
|
'Your one-stop solution for effortless and diversified fund investments ',
|
|
style: TextStyle(
|
|
fontFamily: 'hiragino',
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.w400,
|
|
color: Colors.white),
|
|
children: <TextSpan>[
|
|
TextSpan(
|
|
text: ' bold',
|
|
style: TextStyle(color: Colors.black)),
|
|
],
|
|
),
|
|
),
|
|
SizedBox(
|
|
height: 30.h,
|
|
),
|
|
Row(
|
|
children: [
|
|
Container(
|
|
width: 30.w,
|
|
height: 4.h,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFF4F4F4F),
|
|
borderRadius: BorderRadius.circular(10),
|
|
),
|
|
),
|
|
SizedBox(
|
|
width: 10,
|
|
),
|
|
Container(
|
|
width: 30.w,
|
|
height: 4.h,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFFFFFFFF),
|
|
borderRadius: BorderRadius.circular(10),
|
|
),
|
|
),
|
|
SizedBox(
|
|
width: 10,
|
|
),
|
|
Container(
|
|
width: 30.w,
|
|
height: 4.h,
|
|
decoration: BoxDecoration(
|
|
color: Color(0xFF4F4F4F),
|
|
borderRadius: BorderRadius.circular(10),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
SizedBox(
|
|
height: 30.h,
|
|
),
|
|
CommonBtn(
|
|
text: 'Next',
|
|
onTap: () {
|
|
Get.toNamed(RouteName.sliderscreen3);
|
|
},
|
|
)
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|