@@ -57,9 +57,6 @@ class ChoseTopicPage extends StatelessWidget {
5757 return Scaffold (
5858 body: Stack (
5959 children: [
60- SizedBox (
61- width: double .infinity,
62- ),
6360 Positioned (
6461 top: 100 ,
6562 right: 0 ,
@@ -84,14 +81,14 @@ class ChoseTopicPage extends StatelessWidget {
8481 crossAxisAlignment: CrossAxisAlignment .start,
8582 children: [
8683 Flexible (
87- flex: 3 ,
84+ flex: 4 ,
8885 child: Padding (
8986 padding: EdgeInsets .all (15 ),
9087 child: Column (
9188 crossAxisAlignment: CrossAxisAlignment .start,
9289 children: [
9390 SizedBox (
94- height: 60 ,
91+ height: 50 ,
9592 ),
9693 Text (
9794 'What Brings you' ,
@@ -111,7 +108,7 @@ class ChoseTopicPage extends StatelessWidget {
111108 ),
112109 ),
113110 Flexible (
114- flex: 11 ,
111+ flex: 12 ,
115112 child: ListView (
116113 padding: const EdgeInsets .all (8.0 ),
117114 children: [
@@ -189,37 +186,40 @@ class AppTopicItems extends StatelessWidget {
189186 return GestureDetector (
190187 onTap: onTap,
191188 child: Container (
189+ width: double .infinity,
192190 padding: EdgeInsets .only (bottom: 10 ),
193191 margin: const EdgeInsets .all (8 ),
194192 // height: height,
195193 decoration: BoxDecoration (
196194 color: color,
197195 borderRadius: BorderRadius .all (Radius .circular (10 )),
198196 ),
199- child: Center (
200- child: Column (
201- crossAxisAlignment: CrossAxisAlignment .start,
202- children: [
203- SizedBox (height: 20 ),
204- SvgPicture .asset (
205- svg,
206- fit: BoxFit
207- .contain, // Menghindari overflow dengan menjaga rasio aspek
208- ),
209- SizedBox (height: 20 ),
210- SizedBox (
211- width: 130 ,
212- child: Text (
213- text,
214- style: Theme .of (context)
215- .textTheme
216- .titleMedium!
217- .copyWith (color: textColor),
218- textAlign: TextAlign .start,
219- ),
197+ child: Column (
198+ crossAxisAlignment: CrossAxisAlignment .center,
199+ children: [
200+ SizedBox (height: 20 ),
201+ SvgPicture .asset (
202+ svg,
203+ fit: BoxFit
204+ .contain, // Menghindari overflow dengan menjaga rasio aspek
205+ ),
206+ SizedBox (height: 20 ),
207+ Padding (
208+ padding: const EdgeInsets .symmetric (horizontal: 8.0 ),
209+ child: Row (
210+ children: [
211+ Text (
212+ text,
213+ style: Theme .of (context)
214+ .textTheme
215+ .titleMedium!
216+ .copyWith (color: textColor),
217+ textAlign: TextAlign .start,
218+ ),
219+ ],
220220 ),
221- ] ,
222- ) ,
221+ ) ,
222+ ] ,
223223 ),
224224 ),
225225 );
0 commit comments