@@ -75,59 +75,67 @@ class _PaymentPageOneState extends State<PaymentPageOne> {
7575 ],
7676 ),
7777 ),
78- body: Column (
79- children: < Widget > [
80- PaymentCartItem (
81- bgColor: lightening_yellow,
82- type: "per month" ,
83- price: "\$ " + "54" ,
84- ),
85- PaymentCartItem (
86- bgColor: white,
87- type: "per month" ,
88- price: "\$ " + "54" ,
89- ),
90- PaymentCartItem (
91- bgColor: lightening_yellow,
92- type: "per month" ,
93- price: "\$ " + "54" ,
94- ),
95- Container (
96- margin: EdgeInsets .all (16 ),
97- padding: EdgeInsets .all (16 ),
98- decoration: ShapeDecoration (
99- color: bareley_white,
100- shape: RoundedRectangleBorder (
101- borderRadius: BorderRadius .all (Radius .circular (16 )),
102- )),
103- child: Row (
104- mainAxisAlignment: MainAxisAlignment .spaceBetween,
105- children: < Widget > [
106- LoginText (
107- alignment: Alignment .centerLeft,
108- size: 21 ,
109- text: "Auto renew" ,
78+ body: SingleChildScrollView (
79+ child: Container (
80+ padding: EdgeInsets .only (top: 12 ),
81+ child: Column (
82+ children: < Widget > [
83+ PaymentCartItem (
84+ bgColor: lightening_yellow,
85+ type: "per month" ,
86+ price: "\$ " + "54" ,
87+ ),
88+ PaymentCartItem (
89+ bgColor: white,
90+ type: "per month" ,
91+ price: "\$ " + "54" ,
92+ ),
93+ PaymentCartItem (
94+ bgColor: lightening_yellow,
95+ type: "per month" ,
96+ price: "\$ " + "54" ,
97+ ),
98+ Container (
99+ margin: EdgeInsets .symmetric (horizontal: 24 , vertical: 12 ),
100+ padding: EdgeInsets .all (24 ),
101+ decoration: ShapeDecoration (
102+ color: bareley_white,
103+ shape: RoundedRectangleBorder (
104+ borderRadius: BorderRadius .all (Radius .circular (16 )),
105+ )),
106+ child: Row (
107+ mainAxisAlignment: MainAxisAlignment .spaceBetween,
108+ children: < Widget > [
109+ LoginText (
110+ alignment: Alignment .centerLeft,
111+ size: 21 ,
112+ text: "Auto renew" ,
113+ ),
114+ Switch (
115+ value: isChanged,
116+ onChanged: onChanged,
117+ activeColor: lightening_yellow,
118+ inactiveTrackColor: selago,
119+ inactiveThumbColor: white,
120+ )
121+ ],
110122 ),
111- Switch (
112- value: isChanged,
113- onChanged: onChanged,
114- )
115- ],
116- ),
123+ ),
124+ Padding (
125+ padding: const EdgeInsets .all (24.0 ),
126+ child: ButtonPlainWithShadow (
127+ text: "Subscribe now" ,
128+ height: 48 ,
129+ shadowColor: wood_smoke,
130+ color: wood_smoke,
131+ callback: () {},
132+ textColor: white,
133+ borderColor: wood_smoke,
134+ ),
135+ )
136+ ],
117137 ),
118- Padding (
119- padding: const EdgeInsets .all (16.0 ),
120- child: ButtonPlainWithShadow (
121- text: "Subscribe now" ,
122- height: 48 ,
123- shadowColor: wood_smoke,
124- color: wood_smoke,
125- callback: () {},
126- textColor: white,
127- borderColor: wood_smoke,
128- ),
129- )
130- ],
138+ ),
131139 ),
132140 );
133141 }
0 commit comments