-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChampa.dart
100 lines (97 loc) · 3.6 KB
/
Champa.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
90
91
92
93
94
95
96
97
98
99
100
import 'package:flutter/material.dart';
class Champa extends StatelessWidget {
const Champa({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
SizedBox(
width: double.infinity,
child: Image.asset('assets/images/Champa.jpg'),
),
scroll()
],
));
}
scroll() {
return DraggableScrollableSheet(
initialChildSize: 0.6,
maxChildSize: 1.0,
minChildSize: 0.6,
builder: (context, ScrollController) {
return Container(
clipBehavior: Clip.hardEdge,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(20),
topRight: Radius.circular(20))),
child: SingleChildScrollView(
controller: ScrollController,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(top: 10, bottom: 25),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
height: 5,
width: 35,
color: Colors.black12,
),
],
),
),
Padding(
padding: const EdgeInsets.only(left: 5),
child: Text(
'Champa',
style: TextStyle(
fontSize: 30,
fontWeight: FontWeight.bold,
color: Colors.black),
),
),
SizedBox(
height: 5,
),
Padding(
padding: const EdgeInsets.only(left: 5),
child: Text(
'Season-Spring and Autumn',
style: TextStyle(fontSize: 15, color: Colors.grey),
),
),
SizedBox(
height: 10,
),
Padding(
padding: const EdgeInsets.only(left: 5),
child: Text(
'Description',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.black),
),
),
SizedBox(
height: 5,
),
Padding(
padding: const EdgeInsets.only(left: 5),
child: Text(
'Plumeria(champa) , known as frangipani, is a genus of flowering plants in the subfamily Rauvolfioideae, of the family Apocynaceae. Most species are deciduous shrubs or small trees. The species variously are endemic to Mexico, Central America, and the Caribbean, and as far south as Brazil and north as Florida (United States), but are sometimes grown as cosmopolitan ornamentals in warm regions.',
style: TextStyle(fontSize: 15, color: Colors.grey),
),
),
],
),
),
);
});
}
}