Skip to content

Commit

Permalink
style: 💄 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomokisun committed Dec 15, 2023
1 parent 95f2c80 commit 49b3014
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 14 deletions.
4 changes: 3 additions & 1 deletion lib/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ class App extends StatelessWidget {
home: const Root(),
theme: ThemeData(
primaryColor: AppColor.black,
backgroundColor: AppColor.black,
scaffoldBackgroundColor: AppColor.black,
fontFamily: FontFamily.notoSansJpRegular,
colorScheme: const ColorScheme.dark(
background: AppColor.black,
),
),
navigatorObservers: [
FirebaseAnalyticsObserver(analytics: firebaseAnalytics),
Expand Down
2 changes: 1 addition & 1 deletion lib/components/gradient_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ class GradientScaffold extends Scaffold {
appBar: appBar,
bottomNavigationBar: bottomNavigationBar,
body: Container(
child: body,
width: double.infinity,
height: double.infinity,
decoration: const BoxDecoration(
gradient: AppGradient.primary,
),
child: body,
),
);
}
2 changes: 1 addition & 1 deletion lib/feature/home/components/top_music_box_pane.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TopMusicBoxPane extends StatelessWidget {
child: Row(
children: [
const SizedBox(width: 8),
...musicBoxes.map((d) => ProductCard(key, d)).toList(),
...musicBoxes.map((d) => ProductCard(key, d)),
const SizedBox(width: 8),
],
),
Expand Down
2 changes: 1 addition & 1 deletion lib/feature/home/components/top_music_pane.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TopMusicPane extends StatelessWidget {
child: Row(
children: [
const SizedBox(width: 8),
...musics.map((d) => ProductCard(key, d)).toList(),
...musics.map((d) => ProductCard(key, d)),
const SizedBox(width: 8),
],
),
Expand Down
2 changes: 1 addition & 1 deletion lib/feature/home/components/top_recommended_pane.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TopRecommendedPane extends StatelessWidget {
child: Row(
children: [
const SizedBox(width: 8),
...recommendations.map((d) => ProductCard(key, d)).toList(),
...recommendations.map((d) => ProductCard(key, d)),
const SizedBox(width: 8),
],
),
Expand Down
2 changes: 1 addition & 1 deletion lib/feature/home/components/top_sound_pane.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TopSoundPane extends StatelessWidget {
child: Row(
children: [
const SizedBox(width: 8),
...sounds.map((d) => ProductCard(key, d)).toList(),
...sounds.map((d) => ProductCard(key, d)),
const SizedBox(width: 8),
],
),
Expand Down
2 changes: 1 addition & 1 deletion lib/feature/home/components/top_story_pane.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TopStoryPane extends StatelessWidget {
child: Row(
children: [
const SizedBox(width: 8),
...stories.map((d) => ProductCard(key, d)).toList(),
...stories.map((d) => ProductCard(key, d)),
const SizedBox(width: 8),
],
),
Expand Down
8 changes: 2 additions & 6 deletions lib/util/formatter/date_time_formatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@ class DateTimeFormatter {
static String hourAndMinute(DateTime? dateTime) {
if (dateTime == null) return '';
final format = NumberFormat('00');
return format.format(dateTime.hour) + ':' + format.format(dateTime.minute);
return '${format.format(dateTime.hour)}:${format.format(dateTime.minute)}';
}

static String monthMinute(DateTime? dateTime) {
if (dateTime == null) return '';
final format = NumberFormat('00');
return format.format(dateTime.month) +
'/' +
format.format(dateTime.day) +
' ' +
hourAndMinute(dateTime);
return '${format.format(dateTime.month)}/${format.format(dateTime.day)} ${hourAndMinute(dateTime)}';
}

static String monthAndDay(DateTime? dateTime) {
Expand Down
2 changes: 1 addition & 1 deletion lib/util/formatter/number_formatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class NumberFormatter {
static String hourAndMinute(DateTime? dateTime) {
if (dateTime == null) return '';
final format = NumberFormat('00');
return format.format(dateTime.hour) + ':' + format.format(dateTime.minute);
return '${format.format(dateTime.hour)}:${format.format(dateTime.minute)}';
}

static String comma(int value) {
Expand Down

0 comments on commit 49b3014

Please sign in to comment.