Browse Source

修改

null_safety
哈哈哈 4 years ago
parent
commit
138ec55fe5
  1. 13
      lib/home/huixiang_brand_page.dart
  2. 13
      lib/login/login_page.dart
  3. 2
      lib/retrofit/retrofit_api.g.dart
  4. 5
      lib/union/store_details_page.dart
  5. 289
      pubspec.lock
  6. 2
      pubspec.yaml

13
lib/home/huixiang_brand_page.dart

@ -163,10 +163,15 @@ class _BrandPage extends State<BrandPage>
child: Html(
data: value,
customImageRenders: {
networkSourceMatcher(domains: ["flutter.dev"]):
(context, attributes, element) {
return Image.asset("assets/image/default_1.png");
},
base64DataUriMatcher(): base64ImageRender(),
assetUriMatcher(): assetImageRender(),
networkSourceMatcher(extension: "svg"): svgNetworkImageRender(),
networkSourceMatcher(): networkImageRender(
loadingWidget: () {
// return Image.asset("assets/image/default_1.png",);
return Container();
}
),
},
),
),

13
lib/login/login_page.dart

@ -5,7 +5,6 @@ import 'dart:ui';
import 'package:flutter/gestures.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:huixiang/main.dart';
import 'package:huixiang/retrofit/data/base_data.dart';
import 'package:huixiang/retrofit/retrofit_api.dart';
@ -18,7 +17,7 @@ import 'package:flutter/services.dart';
import 'package:huixiang/generated/l10n.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:dio/dio.dart';
// import 'package:photo_view/photo_view.dart';
import 'package:photo_view/photo_view.dart';
import 'package:shared_preferences/shared_preferences.dart';
class LoginPage extends StatefulWidget {
@ -391,11 +390,11 @@ class _MyLoginPageState extends State<LoginPage> with TickerProviderStateMixin {
child: Stack(
alignment: Alignment.center,
children: [
// PhotoView(
// imageProvider: AssetImage("assets/image/laoban.png"),
// initialScale: Platform.isAndroid ? 1.02 : 1.2,
// basePosition: alignmentProgress,
// ),
PhotoView(
imageProvider: AssetImage("assets/image/laoban.png"),
initialScale: Platform.isAndroid ? 1.02 : 1.2,
basePosition: alignmentProgress,
),
Positioned(
top: 54.h,
left: 28.w,

2
lib/retrofit/retrofit_api.g.dart

@ -9,7 +9,7 @@ part of 'retrofit_api.dart';
class _ApiService implements ApiService {
_ApiService(this._dio, {this.baseUrl}) {
ArgumentError.checkNotNull(_dio, '_dio');
baseUrl ??= 'http://192.168.10.236:8766/app/';
baseUrl ??= 'http://platform.test.api.lotus-wallet.com/app/';
}
final Dio _dio;

5
lib/union/store_details_page.dart

@ -28,7 +28,7 @@ class _StoreDetailsPage extends State<StoreDetailsPage> {
margin: EdgeInsets.only(right: 15),
child: GestureDetector(
onTap: () {
Share.share('https://www.sohu.com/a/346415345_99912465');
// Share.share('https://www.sohu.com/a/346415345_99912465');
},
child: Icon(
Icons.share,
@ -102,7 +102,8 @@ class _StoreDetailsPage extends State<StoreDetailsPage> {
networkSourceMatcher(extension: "svg"): svgNetworkImageRender(),
networkSourceMatcher(): networkImageRender(
loadingWidget: () {
return Image.asset("assets/image/default_1.png",);
// return Image.asset("assets/image/default_1.png",);
return Container();
}
),
},

289
pubspec.lock

File diff suppressed because it is too large Load Diff

2
pubspec.yaml

@ -80,7 +80,7 @@ dependencies:
cached_network_image: ^2.0.0
flutter_html: ^1.3.0 #2.1.0
# photo_view: ^0.11.1
photo_view: ^0.11.1
chewie: ^0.12.2
video_player: ^1.0.1

Loading…
Cancel
Save