obnil / flutter_music_app

First Open Source Flutter based material design music player with audio plugin to play online music
432 stars 137 forks source link

'onGenerateRoute: Router.generateRoute' #13

Open AmirHosseinYazdani opened 3 years ago

AmirHosseinYazdani commented 3 years ago

'onGenerateRoute: Router.generateRoute'

this line has an error message describes as follow :

error: The name 'Router' is defined in the libraries 'package:flutter/src/widgets/router.dart' and 'package:flutter_music_app/config/router_manager.dart'. (ambiguous_import at [flutter_music_app] lib\main.dart:47)

what should i do?

seoeaa commented 3 years ago

Rename Router to ModularRouter

seoeaa commented 3 years ago

visit me download corrected to stable version

AmirHosseinYazdani commented 3 years ago

Actually I did that renaming . Again Thank you

On Sun, Feb 14, 2021, 4:44 PM aleksandrguru notifications@github.com wrote:

visit me download corrected to stable version

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/obnil/flutter_music_app/issues/13#issuecomment-778776391, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLACG5GCIYNFXMY2CQ7P2TS67EEJANCNFSM4XSJ6FGQ .

GomeDev commented 3 years ago

I change import 'package:flutter_music_app/config/router_manager.dart'; to import 'package:flutter_music_app/config/router_manager.dart' as R; and onGenerateRoute: Router.generateRoute, to onGenerateRoute: R.Router.generateRoute,