当前位置:网站首页>Flutter realizes the gradual enlargement of hero pictures and the equal proportion method of pictures. Pictures are smoothly enlarged
Flutter realizes the gradual enlargement of hero pictures and the equal proportion method of pictures. Pictures are smoothly enlarged
2022-07-18 17:10:00 【A Cong is not bald】
Picture list page
floatingActionButton: FloatingActionButton(
child: Icon(Icons.pool),
onPressed: () {
// iOS -> Modal The way
// 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)
},
)Picture details page
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))
),
),
);
}
}
边栏推荐
- 【HMS core】【Wallet Kit】【解决方案】华为钱包的客户端示例代码为何无法运行
- Error in v-on handler: “ReferenceError: Toast is not defined“
- npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
- What does software testing need to learn? What skills do test engineers with an annual salary of 30w+ need to master?
- 【实战】1382- 一文拥有属于你的 puppeteer 爬虫应用
- 2022年全球职业教育行业发展报告
- mixin\插件\scoped样式
- Apple commercial website blocks Firefox browser
- Ceph分布式存储性能调优(六)
- 1.6 method
猜你喜欢
![[Huawei online battle] download and run Huawei's official unity example code, prompting authentication failure and returning error code 100114](/img/62/9918f8b916baf987f6a3f92da4eecc.png)
[Huawei online battle] download and run Huawei's official unity example code, prompting authentication failure and returning error code 100114

In the forced update of Huawei applications, occasionally click "exit application" to exit the application

Error yolov5 PT to onnx error
![[golang] slice](/img/53/316533cbdedd2faab5a8e5d632f91b.png)
[golang] slice

图片验证,滑块验证解决

无心剑中译扎加耶夫斯基《试着赞美这残缺的世界》

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

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

数据湖基本架构

Sff1602-mhchxm diode sff1602
随机推荐
数据湖基本架构
View for recording a temperature curve
【Golang】切片(slice)
pycharm之爬虫教程(仅限于技术交流)
如何通过客户价值分析让银行收入倍增
In the forced update of Huawei applications, occasionally click "exit application" to exit the application
The use of finally in JS
宝立食品上交所上市:年营收15.78亿 市值58亿
【快应用】text组件里的文字很多,旁边的div样式会被拉伸如何解决
面试官:Redis主从集群切换数据丢失问题如何应对?
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
What happens from URL input to page presentation?
越来越难,不行就得多听几次
[golang] slice
NFT商城/NFT盲盒/虚拟盲盒/NFT交易/可定制二开
Online sql to yaml tool
自建个性化自动报价系统,应对多变报价模式
从IT视角审视企业经营,B2B行业CIO谈如何从“成本中心”转到“增长中心”?
Sff1602-mhchxm diode sff1602
Que se passe - t - il exactement de l'entrée d'URL à la présentation de page?