Open AmirHosseinYazdani opened 3 years ago
Rename Router to ModularRouter
visit me download corrected to stable version
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 .
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,
'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?