Skip to content

Commit

Permalink
Merge pull request Purus#2 from MaskyS/patch-1
Browse files Browse the repository at this point in the history
You won't believe how this teenage developer improved this code in 30 seconds
  • Loading branch information
Purus authored Jan 10, 2019
2 parents 869965c + 8bc0b2d commit 092504f
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
import 'package:flutter/material.dart';
import 'package:launch_review/launch_review.dart';

void main() => runApp(new MyApp());
void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
_MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
@override
initState() {
super.initState();
}

@override
Widget build(BuildContext context) {
return new MaterialApp(
home: new Scaffold(
appBar: new AppBar(title: new Text('Launch App Review')),
body: new Center(
child: new RaisedButton(
child: new Text("Rate App"),
onPressed: () {
LaunchReview.launch(
androidAppId: "com.iyaffle.rangoli",
iOSAppId: "585027354");
}))));
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text('Launch App Review')),
body: Center(
child: RaisedButton(
child: Text("Rate App"),
onPressed: () => LaunchReview.launch(
androidAppId: "com.iyaffle.rangoli",
iOSAppId: "585027354",
),
),
),
),
);
}
}

0 comments on commit 092504f

Please sign in to comment.