Merge branch 'dev_chad_v1.0' of http://gitlab.mofune.cn/OnePoem/OnePoem-App into dev_chad_v1.0
Showing
2 changed files
with
13 additions
and
12 deletions
| ... | @@ -112,12 +112,6 @@ class MembershipPageState extends BaseState<MembershipPage> with WidgetsBindingO | ... | @@ -112,12 +112,6 @@ class MembershipPageState extends BaseState<MembershipPage> with WidgetsBindingO |
| 112 | ); | 112 | ); |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | - @override | ||
| 116 | - void dispose() { | ||
| 117 | - PaymentSdk.instance.dispose(); | ||
| 118 | - super.dispose(); | ||
| 119 | - } | ||
| 120 | - | ||
| 121 | Widget buildBuyItem(ProductDetails element) { | 115 | Widget buildBuyItem(ProductDetails element) { |
| 122 | var style = const TextStyle(color: Colors.white); | 116 | var style = const TextStyle(color: Colors.white); |
| 123 | var button = Text("购买", style: style).paddingLeftRight(15).paddingTopBottom(8).click(() { | 117 | var button = Text("购买", style: style).paddingLeftRight(15).paddingTopBottom(8).click(() { |
| ... | @@ -191,4 +185,10 @@ class MembershipPageState extends BaseState<MembershipPage> with WidgetsBindingO | ... | @@ -191,4 +185,10 @@ class MembershipPageState extends BaseState<MembershipPage> with WidgetsBindingO |
| 191 | ), | 185 | ), |
| 192 | ); | 186 | ); |
| 193 | } | 187 | } |
| 188 | + | ||
| 189 | + @override | ||
| 190 | + void dispose() { | ||
| 191 | + PaymentSdk.instance.dispose(); | ||
| 192 | + super.dispose(); | ||
| 193 | + } | ||
| 194 | } | 194 | } | ... | ... |
| ... | @@ -32,12 +32,6 @@ class AddressSelectPageState extends State<AddressSelectPage> { | ... | @@ -32,12 +32,6 @@ class AddressSelectPageState extends State<AddressSelectPage> { |
| 32 | String apiKey = "AIzaSyDQZsMULyO-UtiSht4_MFi1uHT4BIqasjw"; | 32 | String apiKey = "AIzaSyDQZsMULyO-UtiSht4_MFi1uHT4BIqasjw"; |
| 33 | nearby.NearbyPlacesResponse nearbyPlacesResponse = nearby.NearbyPlacesResponse(); | 33 | nearby.NearbyPlacesResponse nearbyPlacesResponse = nearby.NearbyPlacesResponse(); |
| 34 | 34 | ||
| 35 | - @override | ||
| 36 | - void dispose() { | ||
| 37 | - _controller.dispose(); | ||
| 38 | - _locationSubscription.cancel(); | ||
| 39 | - super.dispose(); | ||
| 40 | - } | ||
| 41 | 35 | ||
| 42 | @override | 36 | @override |
| 43 | void initState() { | 37 | void initState() { |
| ... | @@ -207,6 +201,13 @@ class AddressSelectPageState extends State<AddressSelectPage> { | ... | @@ -207,6 +201,13 @@ class AddressSelectPageState extends State<AddressSelectPage> { |
| 207 | setState(() {}); | 201 | setState(() {}); |
| 208 | buildMarkers(); | 202 | buildMarkers(); |
| 209 | } | 203 | } |
| 204 | + | ||
| 205 | + @override | ||
| 206 | + void dispose() { | ||
| 207 | + _controller.dispose(); | ||
| 208 | + _locationSubscription.cancel(); | ||
| 209 | + super.dispose(); | ||
| 210 | + } | ||
| 210 | } | 211 | } |
| 211 | 212 | ||
| 212 | class _AddressItem extends StatelessWidget { | 213 | class _AddressItem extends StatelessWidget { | ... | ... |
-
Please register or login to post a comment