imSanjaySoni / Inshorts-Clone-The-News-App

inshorts News App Clone with flutter and newsapi.org API
https://drive.google.com/file/d/1D0U3uX1GGse8BMWsQ-NIGgEIPkOJNL0a/view?usp=sharing
MIT License
209 stars 80 forks source link

The name 'Router' is defined in the libraries ' #7

Closed vipuluthaiah closed 3 years ago

vipuluthaiah commented 3 years ago

The name 'Router' is defined in the libraries 'package:flutter/src/widgets/router.dart' and 'package:inshort_clone/routes/routesgr.dart'. Try using 'as prefix' for one of the import directives, or hiding the name from all but one of the imports. image image

imSanjaySoni commented 3 years ago

Hey, this error comes with the new update of Flutter SDK, because the Router is a preexisting class of SDK.

You can fix it in two ways..

lib/routes/routes.dart

vipuluthaiah commented 3 years ago

Yeh i have already done that..But m8 it works on debug ,But when i run (flutter build apk) apk have many problem

vipuluthaiah commented 3 years ago

Like only some features are loading .Eg:Only news load rest there is no option to go back

vipuluthaiah commented 3 years ago

Screenshot_20201219-112807 this is the apk .I cant see the back button and many other features r missing

vipuluthaiah commented 3 years ago

image image image