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() { |
| ... | @@ -196,6 +190,13 @@ class AddressSelectPageState extends State<AddressSelectPage> { | ... | @@ -196,6 +190,13 @@ class AddressSelectPageState extends State<AddressSelectPage> { |
| 196 | setState(() {}); | 190 | setState(() {}); |
| 197 | buildMarkers(); | 191 | buildMarkers(); |
| 198 | } | 192 | } |
| 193 | + | ||
| 194 | + @override | ||
| 195 | + void dispose() { | ||
| 196 | + _controller.dispose(); | ||
| 197 | + _locationSubscription.cancel(); | ||
| 198 | + super.dispose(); | ||
| 199 | + } | ||
| 199 | } | 200 | } |
| 200 | 201 | ||
| 201 | class _AddressItem extends StatelessWidget { | 202 | class _AddressItem extends StatelessWidget { | ... | ... |
-
Please register or login to post a comment