style: apply dart format across project

This commit is contained in:
JiWoong Sul
2025-09-07 19:33:11 +09:00
parent f812d4b9fd
commit d1a6cb9fe3
101 changed files with 3123 additions and 2574 deletions

View File

@@ -66,7 +66,8 @@ class AddSubscriptionEventSection extends StatelessWidget {
Container(
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: controller.gradientColors[0].withValues(alpha: 0.1),
color: controller.gradientColors[0]
.withValues(alpha: 0.1),
borderRadius: BorderRadius.circular(12),
),
child: Icon(
@@ -122,7 +123,7 @@ class AddSubscriptionEventSection extends StatelessWidget {
),
],
),
// 이벤트 활성화 시 추가 필드 표시
AnimatedContainer(
duration: const Duration(milliseconds: 300),
@@ -155,7 +156,8 @@ class AddSubscriptionEventSection extends StatelessWidget {
Expanded(
child: Builder(
builder: (context) {
final locale = Localizations.localeOf(context);
final locale =
Localizations.localeOf(context);
String infoText;
switch (locale.languageCode) {
case 'ko':
@@ -168,7 +170,8 @@ class AddSubscriptionEventSection extends StatelessWidget {
infoText = '设置折扣或促销价格';
break;
default:
infoText = 'Set up discount or promotion price';
infoText =
'Set up discount or promotion price';
}
return Text(
infoText,
@@ -185,7 +188,7 @@ class AddSubscriptionEventSection extends StatelessWidget {
),
),
const SizedBox(height: 20),
// 이벤트 기간
Builder(
builder: (context) {
@@ -216,8 +219,10 @@ class AddSubscriptionEventSection extends StatelessWidget {
setState(() {
controller.eventStartDate = date;
// 시작일 설정 시 종료일이 없으면 자동으로 1달 후로 설정
if (date != null && controller.eventEndDate == null) {
controller.eventEndDate = date.add(const Duration(days: 30));
if (date != null &&
controller.eventEndDate == null) {
controller.eventEndDate =
date.add(const Duration(days: 30));
}
});
},
@@ -233,17 +238,18 @@ class AddSubscriptionEventSection extends StatelessWidget {
},
),
const SizedBox(height: 20),
// 이벤트 가격
Builder(
builder: (BuildContext innerContext) {
// 현재 로케일 확인
final currentLocale = Localizations.localeOf(innerContext);
final currentLocale =
Localizations.localeOf(innerContext);
// 로케일에 따라 직접 텍스트 설정
String eventPriceLabel;
String eventPriceHint;
switch (currentLocale.languageCode) {
case 'ko':
eventPriceLabel = '이벤트 가격';
@@ -261,7 +267,7 @@ class AddSubscriptionEventSection extends StatelessWidget {
eventPriceLabel = 'Event Price';
eventPriceHint = 'Enter discounted price';
}
return CurrencyInputField(
controller: controller.eventPriceController,
currency: controller.currency,
@@ -280,4 +286,4 @@ class AddSubscriptionEventSection extends StatelessWidget {
),
);
}
}
}