-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwelcome_page.dart
89 lines (86 loc) · 3.31 KB
/
welcome_page.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// ignore_for_file: prefer_const_constructors
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:new_project/buttons/defaultButtons.dart';
import 'package:new_project/widgets/ApplargeTextstyle.dart';
import 'package:new_project/widgets/textwidget.dart';
import 'package:new_project/cubit/appcubit_cubit.dart';
class WelcomePage extends StatefulWidget {
@override
_WelcomePageState createState() => _WelcomePageState();
}
class _WelcomePageState extends State<WelcomePage> {
List images = ['welcompage1.jpg', 'welcomepage22.jpg', 'welcomepage3.jpg'];
@override
Widget build(BuildContext context) {
return Scaffold(
body: PageView.builder(
scrollDirection: Axis.vertical,
itemCount: images.length,
itemBuilder: ((context, index) => Container(
width: double.maxFinite,
height: double.maxFinite,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage("assets/images/" + images[index]),
fit: BoxFit.cover),
),
child: Container(
margin: EdgeInsets.only(top: 150, left: 20, right: 20),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ApplargeText(text: 'TRIP'),
AppText(
text: 'flying in the sky ',
size: 20,
color: Colors.white54,
),
SizedBox(
height: 8,
),
Container(
height: 60,
width: 100,
child: AppText(
color: Colors.white,
text:
'scrambled it to make a type specime remaining e a type specime re a type specime r',
size: 12,
),
),
SizedBox(
height: 10,
),
GestureDetector(
onTap: () {
BlocProvider.of<AppcubitCubit>(context).getDataa();
},
child: Container(width: 200, child: DefaultButtons()),
),
],
),
Column(
children: List.generate(
3,
(indexdots) => Container(
margin: EdgeInsets.only(bottom: 2),
height: index == indexdots ? 25 : 8,
width: 8,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(5),
color: index == indexdots
? Colors.white
: Colors.white60),
)),
)
],
),
),
)),
));
}
}