Skip to content

Commit

Permalink
fix: add dependency_overrides to example
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabeef committed Oct 21, 2021
1 parent 9d2b0db commit 00f5c4d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ packages:
source: sdk
version: "0.0.0"
flutter_gen_core:
dependency: transitive
dependency: "direct overridden"
description:
name: flutter_gen_core
url: "https://pub.dartlang.org"
source: hosted
path: "../packages/core"
relative: true
source: path
version: "4.0.1"
flutter_gen_runner:
dependency: "direct dev"
Expand Down
6 changes: 6 additions & 0 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ flutter_gen:

assets:
enabled: true
package_parameter_enabled: false
# Assets.imagesChip
# style: camel-case

Expand Down Expand Up @@ -92,3 +93,8 @@ flutter:
- asset: assets/fonts/RobotoMono-Bold.ttf
weight: 700

dependency_overrides:
flutter_gen_runner:
path: ../packages/runner
flutter_gen_core:
path: ../packages/core
2 changes: 1 addition & 1 deletion packages/core/lib/generators/assets_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'dart:io';
import 'package:collection/collection.dart';
import 'package:dart_style/dart_style.dart';
import 'package:dartx/dartx.dart';
import 'package:flutter_gen_core/generators/integrations/rive_integration.dart';
import 'package:path/path.dart';

import '../settings/asset_type.dart';
Expand All @@ -16,6 +15,7 @@ import 'generator_helper.dart';
import 'integrations/flare_integration.dart';
import 'integrations/integration.dart';
import 'integrations/svg_integration.dart';
import 'integrations/rive_integration.dart';

class AssetsGenConfig {
AssetsGenConfig._(
Expand Down

0 comments on commit 00f5c4d

Please sign in to comment.