fluttercommunity / app_review

App Review - Request and Write Reviews and Open Store Listing for Android and iOS in Flutter. Maintainer: @rodydavis
https://fluttercommunity.github.io/app_review/
MIT License
329 stars 108 forks source link

Bug 2.0.1 Error: The argument type 'String' can't be assigned to the parameter type 'Uri'. #54

Closed zakblacki closed 3 years ago

zakblacki commented 3 years ago

I'm getting this error on 2.0.1 I think it's a bug but it works fine on 1.1.2 :

Error: The argument type 'String' can't be assigned to the parameter type 'Uri'. 'Uri' is from 'dart:core'. .get('http://itunes.apple.com/$country/lookup?bundleId=$id')

here is the code I don't think it's coming from me any idea ?

 `ReviewAppDemoState pageState;

 class ReviewAppDemo extends StatefulWidget {
 @override
  ReviewAppDemoState createState() {
  pageState = ReviewAppDemoState();
  return pageState;
  }
 }

 class ReviewAppDemoState extends State<ReviewAppDemo> {
 String appID = "";
 String output = "";

@override
 initState() {
  super.initState();
  AppReview.getAppID.then((onValue) {
   setState(() {
     appID = onValue;
   });
   print("App ID" + appID);
  });
 }

 @override
 Widget build(BuildContext context) {
 return Scaffold(
  appBar: AppBar(title: Text("Request App Review Demo")),
   body: Column(
    children: <Widget>[
      Expanded(
        child: Center(
          child: RaisedButton.icon(
            color: Colors.blueAccent,
            textColor: Colors.white,
            icon: Icon(Icons.star),
            label: Text("Review App"),
            onPressed: () {
              rateApp();
            },
          ),
        ),
      ),
     ],
    ),
   );
  }`
rodydavis commented 3 years ago

fixed with published version 2.1.1