当前位置:网站首页>flutter实现hero图片渐变放大 圖片等比方法圖片平滑放大
flutter实现hero图片渐变放大 圖片等比方法圖片平滑放大
2022-07-16 11:18:00 【阿聪不秃头】
图片列表页面
floatingActionButton: FloatingActionButton(
child: Icon(Icons.pool),
onPressed: () {
// iOS -> Modal方式
// Navigator.of(context).push(MaterialPageRoute(
// builder: (ctx) {
// return HYModalPage();
// },
// fullscreenDialog: true
// ));
Navigator.of(context).push(PageRouteBuilder(
transitionDuration: Duration(seconds: 3),
pageBuilder: (ctx, animation1, animation2) {
return FadeTransition(
opacity: animation1,
child: HYModalPage(),
);
}
));
// Navigator.of(context).pushNamed(routeName)
},
)图片详情页面
import 'package:flutter/material.dart';
class HYImageDetailPage extends StatelessWidget {
final String _imageURL;
HYImageDetailPage(this._imageURL);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.black,
body: Center(
child: GestureDetector(
onTap: () {
Navigator.of(context).pop();
},
child: Hero(tag: _imageURL, child: Image.network(_imageURL))
),
),
);
}
}
边栏推荐
- 错误:SLF4J: Class path contains multiple SLF4J bindings
- vscode 1.69变化与关注点(三路合并/终端集成等)
- My creation anniversary
- 从物理转 AI 、战数据库,95后程序员的职业选择
- MindManager professional 2022 mind mapping tool
- SFF1602-MHCHXM(海矽美)二极管SFF1602
- Health prevention guide 2: healthy diet
- OSPF (open shortest path first) anti ring and networking application hidden dangers caused by calculation errors
- 【华为联机对战】下载运行华为官方Unity示例代码,提示鉴权失败并返回错误码100114
- 873. 最长的斐波那契子序列的长度
猜你喜欢
![[HMS core] [wallet kit] [solution] why can't Huawei wallet's client sample code run](/img/2f/46f9e9b74d2d62701c33d647d8eb9b.png)
[HMS core] [wallet kit] [solution] why can't Huawei wallet's client sample code run

国际NFT交易所排行榜前10名
US pressure surges tiktok changes global safety director

OSPF (open shortest path first) anti ring and networking application hidden dangers caused by calculation errors

【AGC】增长服务3-App Linking示例

污水排放监控,环保数采仪助力城市黑臭水体治理

无心剑中译扎加耶夫斯基《试着赞美这残缺的世界》
![[deep learning] 40000 word notes! Yann Lecun deep learning open class 125 pages of dry goods are here](/img/03/0a7327191447926146e4b3abc66873.png)
[deep learning] 40000 word notes! Yann Lecun deep learning open class 125 pages of dry goods are here

数据湖基本架构

2022年全球職業教育行業發展報告
随机推荐
错误:The source of the existing CacheManager is: URLConfigurationSource
“四朵云”的较量
mixin\插件\scoped样式
Sff1602-mhchxm diode sff1602
中科蓝讯上市首日跌30%:黄志强60岁创业 公司市值77亿
What does software testing need to learn? What skills do test engineers with an annual salary of 30w+ need to master?
Building vector database from scratch: source code compilation and installation of Milvus (II)
About network time protocol (NTP) mod-6 scanning vulnerability handling
【HMS Core】【FAQ】【Health Kit】集成运动健康服务过程中,遇到一些小问题,今天分享给大家(华为手表、手环+运动健康服务问题合集)
畅游奢侈品元宇宙Louis:The Game,参与NFT系列数字藏品白撸活动| 教程
從 URL 輸入到頁面展現到底發生什麼?
基于 CRON 库扩展的分布式 Crontab 的实现
Create and generate WiFi QR code mobile phone scanning link
如何通过客户价值分析让银行收入倍增
【手把手带你学UVM】~ 记录遇到的一切错误
越来越难,不行就得多听几次
Summer behavior reward for postgraduate entrance examination top5
SAP Fiori Launchpad 上看不到任何 tile 应该怎么办?
配置typora+PicGo+Aliyun OSS服务
【快应用】px和vp单位换算