mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 03:19:11 +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;
|
Offering _selectedOffering;
|
||||||
var _scaffoldKey = GlobalKey<ScaffoldState>();
|
var _scaffoldKey = GlobalKey<ScaffoldState>();
|
||||||
|
|
||||||
|
final defaultSku = "sku_monthly_min2";
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
@ -133,7 +135,13 @@ class _PurchaseWidgetState extends State<PurchaseWidget> {
|
|||||||
_selectedOffering = _offerings.isNotEmpty ? _offerings.first : null;
|
_selectedOffering = _offerings.isNotEmpty ? _offerings.first : null;
|
||||||
|
|
||||||
if (_offerings.length > 1) {
|
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 {
|
} else {
|
||||||
var fakePackageJson = {
|
var fakePackageJson = {
|
||||||
'identifier': 'monthly_fake',
|
'identifier': 'monthly_fake',
|
||||||
|
Reference in New Issue
Block a user