Skip to content

Commit a9efe7c

Browse files
committed
🎨 StockCard λ””μžμΈ μˆ˜μ •
1 parent b334940 commit a9efe7c

4 files changed

Lines changed: 33 additions & 114 deletions

File tree

β€Žexample/lib/main.dartβ€Ž

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ComponentTestScreen extends StatelessWidget {
4545
),
4646
body: SingleChildScrollView(
4747
child: Padding(
48-
padding: EdgeInsets.all(16.w), // Responsive padding
48+
padding: EdgeInsets.fromLTRB(24.w, 16.h, 24.w, 56.h),
4949
child: Column(
5050
crossAxisAlignment: CrossAxisAlignment.start,
5151
children: [
@@ -156,10 +156,7 @@ class ComponentTestScreen extends StatelessWidget {
156156
ButtonBuy(buttonText: 'μ˜ˆμ‹œ ν…μŠ€νŠΈ'),
157157
SizedBox(height: 16.h),
158158

159-
JusicoolImage.cloud(
160-
width: 100.w,
161-
height: 100.h,
162-
),
159+
JusicoolImage.cloud(width: 100.w, height: 100.h),
163160

164161
JusicoolIcon.chart(),
165162
JusicoolIcon.news(),

β€Žlib/src/ui/widgets/card.dartβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export 'card/log_card.dart';
22
export 'card/month_stock_card.dart';
33
export 'card/news_card.dart';
4-
export 'card/stock_card.dart';
4+
export 'card/stock_card.dart';

β€Žlib/src/ui/widgets/card/stock_card.dartβ€Ž

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,50 +25,53 @@ class StockCard extends StatelessWidget {
2525
@override
2626
Widget build(BuildContext context) {
2727
return Container(
28-
padding: EdgeInsets.all(16.w), // βœ… 적용
2928
decoration: BoxDecoration(
3029
color: JusicoolColor.white,
31-
borderRadius: BorderRadius.circular(12.r), // βœ… 적용
30+
borderRadius: BorderRadius.circular(12.r),
3231
),
3332
child: Row(
33+
mainAxisAlignment: MainAxisAlignment.spaceBetween,
3434
children: [
35-
SizedBox(
36-
width: 40.w, // βœ… 적용
37-
height: 40.h, // βœ… 적용
38-
child: ClipRRect(
39-
borderRadius: BorderRadius.circular(20.r), // βœ… 적용
40-
child: Image.network(
41-
logoUrl,
42-
fit: BoxFit.cover,
43-
),
44-
),
45-
),
46-
SizedBox(width: 12.w), // βœ… 적용
47-
Column(
48-
crossAxisAlignment: CrossAxisAlignment.start,
35+
Row(
4936
children: [
50-
Text(
51-
companyName,
52-
style: JusicoolTypography.bodyMedium,
53-
),
54-
SizedBox(height: 4.h), // βœ… 적용
55-
Text(
56-
share,
57-
style: JusicoolTypography.label.copyWith(
58-
color: JusicoolColor.gray500,
37+
SizedBox(
38+
width: 40.w,
39+
height: 40.h,
40+
child: ClipRRect(
41+
borderRadius: BorderRadius.circular(20.r),
42+
child: Image.network(
43+
logoUrl,
44+
fit: BoxFit.cover,
45+
),
5946
),
6047
),
48+
SizedBox(width: 12.w),
49+
Column(
50+
crossAxisAlignment: CrossAxisAlignment.start,
51+
children: [
52+
Text(
53+
companyName,
54+
style: JusicoolTypography.bodyMedium,
55+
),
56+
SizedBox(height: 4.h),
57+
Text(
58+
share,
59+
style: JusicoolTypography.label.copyWith(
60+
color: JusicoolColor.gray500,
61+
),
62+
),
63+
],
64+
),
6165
],
6266
),
63-
Spacer(),
6467
Column(
6568
crossAxisAlignment: CrossAxisAlignment.end,
6669
children: [
6770
Text(
6871
price,
6972
style: JusicoolTypography.bodyMedium,
7073
),
71-
SizedBox(height: 4.h), // βœ… 적용
74+
SizedBox(height: 4.h),
7275
Text(
7376
priceChange,
7477
style: JusicoolTypography.label.copyWith(

β€Žlib/src/ui/widgets/text_filed/input_field.dartβ€Ž

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
Β (0)