-
Notifications
You must be signed in to change notification settings - Fork 1
/
section3.py
102 lines (95 loc) · 2.23 KB
/
section3.py
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
101
102
from flet import *
from flet import colors,icons
section3 = Container(
margin = margin.only(top=40,left=10),
content=Column([
Text("Top Picks For You",size=30,weight="bold"),
Row([
Container(
margin = margin.only(top=10),
border_radius=30,
padding=10,
bgcolor="#41AE62",
ink=True,
on_click=lambda e: print("badge test"),
border = border.all(2,"#E1E1E1"),
content = Text("All",size=13,color="white")
),
Container(
margin = margin.only(top=10),
border_radius=30,
padding=10,
ink=True,
on_click=lambda e: print("badge test"),
border = border.all(2,"#E1E1E1"),
content = Text("Covid-19",size=13,color="black")
),
Container(
margin = margin.only(top=10),
border_radius=30,
padding=10,
ink=True,
on_click=lambda e: print("badge test"),
border = border.all(2,"#E1E1E1"),
content = Text("Donation",size=13,color="black")
),
Container(
margin = margin.only(top=10),
border_radius=30,
padding=10,
ink=True,
on_click=lambda e: print("badge test"),
border = border.all(2,"#E1E1E1"),
content = Text("Entertainment",size=13,color="black")
),
],alignment="spaceAround"),
# FOR CARD SECTION
Container(
margin = margin.only(bottom=40),
content=Row([
Card(
elevation=30,
content=Container(
bgcolor="white",
padding=10,
content=Column([
Image(
src="https://lelogama.go-jek.com/post_featured_image/header-paylater-voucher-gofood-plus.jpg",
fit="contain",
width=300,
height=220
),
Text("Get Up 50 K Cashback",
size=20,weight="bold"),
Text('''upgrade to Gopay plus now
,enjoy cashback up to 50 K
if you transact with PayLater !
''',size=15,color="grey")
])
)
),
Card(
elevation=30,
content=Container(
bgcolor="white",
padding=10,
content=Column([
Image(
src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTrQRcwzqT4WSP0rPx6F4Wbup-OVoaHjiYwEg&usqp=CAU",
fit="contain",
width=300,
height=220
),
Text("Get Up 50 K Cashback",
size=20,weight="bold"),
Text('''upgrade to Gopay plus now
,enjoy cashback up to 50 K
if you transact with PayLater !
''',size=15,color="grey")
])
)
),
],scroll="always")
)
])
)