Milad-Akarie / auto_route_library

Flutter route generator
MIT License
1.59k stars 405 forks source link

3rd party imports use the "src" directory #34

Closed ResoDev closed 4 years ago

ResoDev commented 4 years ago

Hello Milad! The same problem that happened in injectable mentioned in the issue no. 12 also happens in auto_route with route arguments.

  final Option<Note> editedNoteOption;

  const NoteFormPage({
    Key key,
    @required this.editedNoteOption,
  }) : super(key: key);

generates the following erroneous import

import 'package:dartz/src/option.dart';
Milad-Akarie commented 4 years ago

Hey, @ResoDev ya I'll just apply the same solution from injectable.

Milad-Akarie commented 4 years ago

Hey Reso Fixed in v0.3.1. Thanks for reporting.