Skip to content

Commit

Permalink
refactor: flutter_genを使う前提でサンプルを変更
Browse files Browse the repository at this point in the history
  • Loading branch information
K9i-0 committed Jun 18, 2024
1 parent 66b685e commit 4d21969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ command:
riverpod_lint: ^2.3.10
yumemi_lints: ^2.1.0
test: ^1.24.0
flutter_gen_runner: ^5.5.0+1
hooks:
post: melos run yumemi_lints_update

Expand Down
10 changes: 2 additions & 8 deletions packages/features/setting/lib/src/ui/setting_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,8 @@ class SettingPage extends ConsumerWidget {
SliverList(
delegate: SliverChildListDelegate(
[
// featureでassetsを使う場合はpackageを指定する
Image.asset(
'assets/yumemi_logo.png',
package: 'features_setting',
width: 100,
height: 100,
),
// こちらはflutter_genを使う場合
// 同一パッケージのassetsはこのように使います
// 汎用的なassetsはcores_designsystemのCommonAssetsを使います
Assets.yumemiLogo.image(
width: 100,
height: 100,
Expand Down

0 comments on commit 4d21969

Please sign in to comment.