flutter-layout

Flutter: how to adjust/override properties of the Flutter core code without copying entire files?

爷,独闯天下 提交于 2020-05-15 03:38:49
问题 This question is related to the following StackOverflow issue: bottom sheet with initial height half of screen and if it scroll then height is increase to full screen It is about a constraint that is set within the Flutter code about bottom sheets, that I do not want to have. I understand the solution mentioned in the link above, but I don't know how to implement it in a nice way. Right now my 'solution' is to completely copy the bottom_sheet.dart file from the official Flutter codebase and

how to download/create pdf through webview in flutter

我的未来我决定 提交于 2020-05-14 18:10:09
问题 I have created a webviewscaffold but can't download anything from it while browsing from the webview, I made but when I click the button it does nothing. I don't know where to start, like in other browsers that can download and preview, I'm trying to achieve the same thing in here. class AppState extends State<App> { @override Widget build(BuildContext context) { return Scaffold( body: Stack( children: <Widget>[ Align( alignment: Alignment(1, 1), child: Container( child: Web(), // it is a

how to download/create pdf through webview in flutter

丶灬走出姿态 提交于 2020-05-14 18:07:11
问题 I have created a webviewscaffold but can't download anything from it while browsing from the webview, I made but when I click the button it does nothing. I don't know where to start, like in other browsers that can download and preview, I'm trying to achieve the same thing in here. class AppState extends State<App> { @override Widget build(BuildContext context) { return Scaffold( body: Stack( children: <Widget>[ Align( alignment: Alignment(1, 1), child: Container( child: Web(), // it is a

How to avoid scrolling listview when scrolling in map within listview

☆樱花仙子☆ 提交于 2020-05-13 18:21:11
问题 I have a ListView, at the top of which I have a map, I want the map to scroll out of view when the ListView is scrolled, but I also want the user to be able to interact with the map. So scrolling should only happen when the user scrolls on the other ListView widgets and not when they scroll on the map, then I want the gesture to be applied directly to the map. Currently though, when the user scrolls on the map, it scrolls the whole ListView. I have tried the other suggestion that I have come

How to avoid scrolling listview when scrolling in map within listview

大城市里の小女人 提交于 2020-05-13 18:20:11
问题 I have a ListView, at the top of which I have a map, I want the map to scroll out of view when the ListView is scrolled, but I also want the user to be able to interact with the map. So scrolling should only happen when the user scrolls on the other ListView widgets and not when they scroll on the map, then I want the gesture to be applied directly to the map. Currently though, when the user scrolls on the map, it scrolls the whole ListView. I have tried the other suggestion that I have come

Size of the Date Picker in Flutter

 ̄綄美尐妖づ 提交于 2020-05-13 08:55:33
问题 I am making an ipad in flutter. I have a date picker. But in landscape it is showing pretty big. Is there any way to resize the date picker dialog 回答1: Yes, you can resize date picker dialog by Container(), SizedBox() etc. using it in builder, but only if you put it in something like Column(), for example: return showDatePicker( context: context, initialDate: DateTime.now(), firstDate: DateTime.now(), lastDate: DateTime.now().add(Duration(days: 356)), builder: (context, child) { return Column

Size of the Date Picker in Flutter

白昼怎懂夜的黑 提交于 2020-05-13 08:52:45
问题 I am making an ipad in flutter. I have a date picker. But in landscape it is showing pretty big. Is there any way to resize the date picker dialog 回答1: Yes, you can resize date picker dialog by Container(), SizedBox() etc. using it in builder, but only if you put it in something like Column(), for example: return showDatePicker( context: context, initialDate: DateTime.now(), firstDate: DateTime.now(), lastDate: DateTime.now().add(Duration(days: 356)), builder: (context, child) { return Column

Why does Backdrop filter blur my entire app

怎甘沉沦 提交于 2020-05-13 07:37:51
问题 I am trying to achieve a very similar effect to what was shown in the widget of the week video on flutter's channel: https://www.youtube.com/watch?v=dYRs7Q1vfYI#t=1m20s On the right you see the desired result, on the left you see what's currently going on in my app. The code I've been using is pretty similar to the one from the example video, using a Stack to position the Backdrop filter over my image. The rounded image and the blur over it are inside one widget, which will is placed inside

how to keep the state of my widgets after scrolling?

久未见 提交于 2020-05-13 04:55:45
问题 I'm codeing an app with flutter an i'm haveing problems with the development. I'm trying to have a listview with a custom widget that it has a favourite icon that represents that you have liked it product. I pass a boolean on the constructor to set a variables that controls if the icons is full or empty. When i click on it i change it state. It works awesome but when i scroll down and up again it loses the lastest state and returns to the initial state. Do you know how to keep it states after

How to set background color for an icon button?

五迷三道 提交于 2020-05-11 05:19:29
问题 I want to apply background color for icon button but I don't see an explicit backgroundColor property for it. I want to achieve this: Currently I was able to achieve till here: Below is the code so far: @override Widget build(BuildContext context) { return Scaffold( resizeToAvoidBottomPadding: false, backgroundColor: Color(0xFF13212C), appBar: AppBar( title: Text('Demo'), ), drawer: appDrawer(), body: new Center( child: new Column( crossAxisAlignment: CrossAxisAlignment.stretch, //