mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
Increase the default price
It'll be nice experiment to see if this results in people paying more.
This commit is contained in:
@ -88,6 +88,8 @@ class _PurchaseWidgetState extends State<PurchaseWidget> {
|
||||
Offering _selectedOffering;
|
||||
var _scaffoldKey = GlobalKey<ScaffoldState>();
|
||||
|
||||
final defaultSku = "sku_monthly_min2";
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
@ -133,7 +135,13 @@ class _PurchaseWidgetState extends State<PurchaseWidget> {
|
||||
_selectedOffering = _offerings.isNotEmpty ? _offerings.first : null;
|
||||
|
||||
if (_offerings.length > 1) {
|
||||
_selectedOffering = _offerings[1];
|
||||
for (var o in _offerings) {
|
||||
var prod = o.monthly.product;
|
||||
if (prod.identifier == defaultSku) {
|
||||
_selectedOffering = o;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var fakePackageJson = {
|
||||
'identifier': 'monthly_fake',
|
||||
|
Reference in New Issue
Block a user