From b64deec3c536d9426023067378893161765669c7 Mon Sep 17 00:00:00 2001 From: fmk Date: Mon, 26 Jul 2021 19:25:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81=EF=BC=8C=20=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/login/login_page.dart | 12 ++++++------ pubspec.yaml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/login/login_page.dart b/lib/login/login_page.dart index 79b77ba5..7a1d2845 100644 --- a/lib/login/login_page.dart +++ b/lib/login/login_page.dart @@ -17,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 { @@ -390,11 +390,11 @@ class _MyLoginPageState extends State 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, diff --git a/pubspec.yaml b/pubspec.yaml index d47063f1..76a0e108 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -87,7 +87,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