From c0dd01cf012b885fd23b9a23988b7a8dd4c2097d Mon Sep 17 00:00:00 2001 From: laiiihz Date: Tue, 12 Jan 2021 19:50:16 +0800 Subject: [PATCH] remove loading icon --- lib/pages/market_class/market_class_page.dart | 7 +------ lib/pages/personal/personal_page.dart | 1 - lib/widget/bee_back_button.dart | 2 +- pubspec.lock | 21 ++++++++++++------- pubspec.yaml | 4 ++-- 5 files changed, 18 insertions(+), 17 deletions(-) diff --git a/lib/pages/market_class/market_class_page.dart b/lib/pages/market_class/market_class_page.dart index 743b72d6..8f48dc1a 100644 --- a/lib/pages/market_class/market_class_page.dart +++ b/lib/pages/market_class/market_class_page.dart @@ -4,7 +4,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:akuCommunity/utils/screenutil.dart'; import 'package:akuCommunity/base/base_style.dart'; -import 'package:loading_animations/loading_animations.dart'; import 'package:akuCommunity/widget/cached_image_wrapper.dart'; import 'package:akuCommunity/model/aku_shop_class_model.dart'; import 'package:akuCommunity/service/base_model.dart'; @@ -18,7 +17,6 @@ class MarketClassPage extends StatefulWidget { } class _MarketClassPageState extends State { - // Future.microtask(() => null)1 // void testSX(){ // new Future(() => print('s_1')); @@ -235,10 +233,7 @@ class _MarketClassPageState extends State { ), ) : Container( - child: LoadingBumpingLine.circle( - size: 30, - backgroundColor: Colors.white, - ), + child: CircularProgressIndicator(), ), ); } diff --git a/lib/pages/personal/personal_page.dart b/lib/pages/personal/personal_page.dart index fab1a3ac..d588d47b 100644 --- a/lib/pages/personal/personal_page.dart +++ b/lib/pages/personal/personal_page.dart @@ -34,7 +34,6 @@ class _PersonalIndexState extends State SliverAppBar _sliverAppBar(double height) { final userProvider = Provider.of(context); return SliverAppBar( - pinned: true, elevation: 0, stretch: true, floating: true, diff --git a/lib/widget/bee_back_button.dart b/lib/widget/bee_back_button.dart index 5b2e9cd3..8b1aa93b 100644 --- a/lib/widget/bee_back_button.dart +++ b/lib/widget/bee_back_button.dart @@ -8,7 +8,7 @@ class BeeBackButton extends StatelessWidget { Widget build(BuildContext context) { return Navigator.canPop(context) ? IconButton( - onPressed: () {}, + onPressed: () => Navigator.pop(context), icon: Icon( CupertinoIcons.chevron_back, ), diff --git a/pubspec.lock b/pubspec.lock index fb735177..5a16cfbe 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -518,6 +518,20 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "1.2.0" + hive: + dependency: "direct main" + description: + name: hive + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.4.4+1" + hive_flutter: + dependency: "direct main" + description: + name: hive_flutter + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.3.1" html: dependency: transitive description: @@ -602,13 +616,6 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "0.1.6" - loading_animations: - dependency: "direct main" - description: - name: loading_animations - url: "https://pub.flutter-io.cn" - source: hosted - version: "2.1.0" logging: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index d2293015..9153b00e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -85,8 +85,6 @@ dependencies: qr_flutter: ^3.2.0 #选择器 flutter_picker: ^1.1.5 - #加载动画 - loading_animations: ^2.1.0 #高德地图 amap_map_fluttify: amap_location_fluttify: @@ -98,6 +96,8 @@ dependencies: fluwx: ^2.3.0 get: velocity_x: ^1.3.1 + hive: + hive_flutter: dev_dependencies: flutter_test: