Skip to content

Commit

Permalink
refactor: contributorsProvider をcommon_data パッケージへ移動
Browse files Browse the repository at this point in the history
  • Loading branch information
blendthink committed Oct 22, 2024
1 parent 02b3b91 commit d7d9919
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:app_features_about/l10n.dart';
import 'package:app_features_about/src/data/contributors_provider.dart';
import 'package:app_features_about/src/ui/staff/staff_card_widget.dart';
import 'package:common_data/contributor.dart';
import 'package:flutter/material.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';

Expand All @@ -13,9 +13,9 @@ class ContributorsPage extends ConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
final l = L10nAbout.of(context);
final contributors = ref.watch(contributorsProvider);
final contributorsAsyncValue = ref.watch(contributorsProvider);
return Scaffold(
body: contributors.when(
body: contributorsAsyncValue.when(
data: (contributors) {
return CustomScrollView(
slivers: [
Expand Down
3 changes: 1 addition & 2 deletions packages/common/data/lib/contributor.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export 'src/model/contributor.dart';
export 'src/repository/contributor_repository.dart'
show ContributorRepository, contributorRepositoryProvider;
export 'src/provider/contributors_provider.dart' show contributorsProvider;
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:common_data/contributor.dart';
import 'package:common_data/src/model/contributor.dart';
import 'package:common_data/src/repository/contributor_repository.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';

part 'contributors_provider.g.dart';
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d7d9919

Please sign in to comment.