flutter-layout

How to overlay a view partially using the Stack widget in Flutter

风格不统一 提交于 2020-08-27 06:44:28
问题 I am using Flutter for my app development. I would like to overlay a poster image view on top of a background image just like in this screenshot below. The code snippet below does this, but it requires me to also position every other widget including the movie title, release date, etc based on poster's position and background image's position, which is not reliable across several devices and orientation. Is there an example or suggestion to solve this problem? @override Widget build

Flutter : how Allow content to overlap SliverAppBar?

独自空忆成欢 提交于 2020-08-24 09:16:39
问题 In android we are using app:behavior_overlapTop="64dp" to achieve this I want overlap content same like above GIF in flutter My code class DetailsPage extends StatefulWidget { @override _DetailsPage createState() => _DetailsPage(); } class _DetailsPage extends State<DetailsPage> { @override void initState() { super.initState(); SystemChrome.setPreferredOrientations([ DeviceOrientation.portraitUp, DeviceOrientation.portraitDown, ]); _scrollController = ScrollController(); _scrollController

Flutter : how Allow content to overlap SliverAppBar?

岁酱吖の 提交于 2020-08-24 09:16:29
问题 In android we are using app:behavior_overlapTop="64dp" to achieve this I want overlap content same like above GIF in flutter My code class DetailsPage extends StatefulWidget { @override _DetailsPage createState() => _DetailsPage(); } class _DetailsPage extends State<DetailsPage> { @override void initState() { super.initState(); SystemChrome.setPreferredOrientations([ DeviceOrientation.portraitUp, DeviceOrientation.portraitDown, ]); _scrollController = ScrollController(); _scrollController

Remove space top and bottom ListTile flutter

耗尽温柔 提交于 2020-08-24 06:02:32
问题 I need help, please. How to remove the space top and bottom from ListTile? My Code is: child: Column( children: <Widget>[ ListTile( contentPadding: EdgeInsets.only(left: 0.0, right: 0.0), title: Text( 'Home', style: TextStyle(fontSize: 15.0), ), ), ListTile( contentPadding: EdgeInsets.only(left: 0.0, right: 0.0), title: Text( 'Audio', style: TextStyle(fontSize: 15.0, color: Colors.black45), ), ),), Screenshot Thanks!. Sorry for my bad English 回答1: With ListTile it is not possible. Some