Skip to content

Commit 4921ba1

Browse files
committed
add safearea
1 parent dd85487 commit 4921ba1

File tree

4 files changed

+267
-296
lines changed

4 files changed

+267
-296
lines changed

README.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1 @@
1-
# flutter_ui_meditation_app
2-
3-
A new Flutter project.
4-
5-
## Getting Started
6-
7-
This project is a starting point for a Flutter application.
8-
9-
A few resources to get you started if this is your first Flutter project:
10-
11-
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
12-
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
13-
14-
For help getting started with Flutter development, view the
15-
[online documentation](https://docs.flutter.dev/), which offers tutorials,
16-
samples, guidance on mobile development, and a full API reference.
1+
![CI/CD Status](https://github.com/sh4dowByte/flutter_ui_meditation_app/actions/workflows/main.yaml/badge.svg?branch=release)

lib/screen/chose_topic.dart

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)