Swap a few things around

This commit is contained in:
Hanh 2021-09-14 22:29:40 +08:00
parent 06d1c84028
commit a331b8d813
3 changed files with 13 additions and 13 deletions

View File

@ -872,11 +872,11 @@ class PnLState extends State<PnLWidget> with AutomaticKeepAliveClientMixin {
});
},
options: [
FormBuilderFieldOption(child: Text(S.of(context).price), value: 0),
FormBuilderFieldOption(
child: Text(S.of(context).realized), value: 0),
FormBuilderFieldOption(child: Text(S.of(context).mm), value: 1),
FormBuilderFieldOption(child: Text(S.of(context).total), value: 2),
FormBuilderFieldOption(child: Text(S.of(context).price), value: 3),
child: Text(S.of(context).realized), value: 1),
FormBuilderFieldOption(child: Text(S.of(context).mm), value: 2),
FormBuilderFieldOption(child: Text(S.of(context).total), value: 3),
FormBuilderFieldOption(child: Text(S.of(context).qty), value: 4),
FormBuilderFieldOption(child: Text(S.of(context).table), value: 5),
]),
@ -906,13 +906,13 @@ class PnLChart extends StatelessWidget {
static double _seriesData(PnL pnl, int index) {
switch (index) {
case 0:
return pnl.realized;
case 1:
return pnl.unrealized;
case 2:
return pnl.realized + pnl.unrealized;
case 3:
return pnl.price;
case 1:
return pnl.realized;
case 2:
return pnl.unrealized;
case 3:
return pnl.realized + pnl.unrealized;
case 4:
return pnl.amount;
}

View File

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.9+121
version: 1.0.9+129
environment:
sdk: ">=2.12.0 <3.0.0"
@ -79,7 +79,7 @@ dev_dependencies:
flutter_native_splash: ^1.2.3
flutter_app_name:
name: ""
name: "YWallet"
flutter_icons:
android: true

View File

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.9+121
version: 1.0.9+129
environment:
sdk: ">=2.12.0 <3.0.0"