update image transition

hmxc
小赖 4 years ago
parent 68fde22761
commit 82bf2909a8

@ -1,6 +1,8 @@
import 'dart:async';
import 'dart:ui';
import 'package:aku_community/widget/bee_back_button.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@ -201,8 +203,10 @@ class _SignInPageState extends State<SignInPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
return BeeScaffold(
leading: BeeBackButton(),
title: '',
bgColor: Colors.white,
body: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
@ -279,7 +283,7 @@ class _SignInPageState extends State<SignInPage> {
MaterialButton(
shape: StadiumBorder(),
padding: EdgeInsets.zero,
onPressed: () => Get.to(AgreementPage()),
onPressed: () => Get.to(() => AgreementPage()),
child: Text(
'《小蜜蜂用户协议》',
style: TextStyle(

@ -177,10 +177,12 @@ class _AdvicePageState extends State<AdvicePage> with TickerProviderStateMixin {
),
secondChild: BottomButton(
onPressed: () async {
bool needRefresh = await Get.to(NewAdvicePage(
bool needRefresh = await Get.to(
() => NewAdvicePage(
type: widget.type,
initType: _tabController.index,
));
),
);
if (needRefresh == true) {
_refreshController.callRefresh();
Get.dialog(CupertinoAlertDialog(

@ -13,12 +13,16 @@ class BeeImagePreview extends StatefulWidget {
return await navigator.push(
PageRouteBuilder(
opaque: false,
fullscreenDialog: true,
pageBuilder: (context, animation, secondAnimation) {
return FadeTransition(
opacity: animation,
child: BeeImagePreview.file(file: file, tag: tag),
);
},
transitionsBuilder: (context, animation, secondaryAnimation, child) {
return child;
},
),
);
}
@ -27,10 +31,14 @@ class BeeImagePreview extends StatefulWidget {
navigator.push(
PageRouteBuilder(
opaque: false,
fullscreenDialog: true,
pageBuilder: (context, animation, secondAnimation) {
return BeeImagePreview.path(path: path, tag: tag);
},
transitionsBuilder: (context, animation, secondaryAnimation, child) {
return FadeTransition(
opacity: animation,
child: BeeImagePreview.path(path: path, tag: tag),
child: child,
);
},
),

Loading…
Cancel
Save