Skip to content

Commit

Permalink
refactor: NewsListItemへ命名変更
Browse files Browse the repository at this point in the history
  • Loading branch information
blendthink committed Oct 22, 2024
1 parent 9f712d1 commit 5c981b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import 'package:url_launcher/url_launcher.dart';
// DateFormatオブジェクトは作成コストが少し高いため、クラス変数として定義する
final _dateFormatter = DateFormat.yMMMMd();

/// お知らせ情報のアイテム
class NewsItemWidget extends StatelessWidget {
const NewsItemWidget({
/// お知らせ一覧のリストアイテム
class NewsListItem extends StatelessWidget {
const NewsListItem({
required String name,
required DateTime publishedAt,
required Uri uri,
Expand Down
4 changes: 2 additions & 2 deletions packages/app/features/news/lib/src/ui/news_page.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:app_cores_designsystem/ui.dart';
import 'package:app_cores_settings/ui.dart';
import 'package:app_features_news/src/gen/l10n/l10n.dart';
import 'package:app_features_news/src/ui/news_item_widget.dart';
import 'package:app_features_news/src/ui/news_list_item.dart';
import 'package:app_features_news/src/ui/notifier/state/news_notifier.dart';
import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
Expand Down Expand Up @@ -41,7 +41,7 @@ class NewsPage extends HookConsumerWidget {
childCount: newsList.length,
(context, index) {
final news = newsList[index];
return NewsItemWidget(
return NewsListItem(
name: news.text,
publishedAt: news.startedAt,
uri: news.url,
Expand Down

0 comments on commit 5c981b5

Please sign in to comment.