Categories
Mastering Development

Flutter : How to disable drag down to close showModalBottomSheet

I want to disable drag down to close the showModalBottomSheet I have already tried using enableDrag:false, When i’m using enableDrag:false, is showing me below error Below is my code modal(BuildContext context) { showModalBottomSheet( context: context, enableDrag:false, isDismissible: false, backgroundColor: Colors.transparent, builder: (context) { return Container( width: MediaQuery.of(context).size.width, child: Stack( alignment: Alignment.topCenter, children: <Widget>[ Container( width: […]

Categories
Development

How to link StaggeredGridView items individually?

Following a tutorial on StaggeredGridView I successfully built a page to display staggered grids of text and an icon. The tutorial stopped short on explaining how to link each grid item separately. I am aware of onTap, GestureDetector, OnPressed, but I can not figure out how to implement any of these in this grid layout […]

Categories
Development

Flutter: Horizontal auto Scrolling

I would like some help with getting the artist names to automatically scroll from right to left (or left to right if that’s easier for you) in flutter, but I am not sure how to go about that and would appreciate someone’s help I have looked into Horizontal ListViews and all but I was […]

Categories
Development

How to change the time and Phone Icons like wifi color when appbar background is changed to white

I changed the background color of the appBar in one of my screens. It’s now white, but the device time display and icons like the wifi icon don’t show. How can I change the color of these device icons? This is what I have now: This is what I want to achieve Here is my […]

Categories
Development

Flutter Camera startImageStream returning images of null

I’m trying to create a realtime poseNet demo app with the help of Flutter and its Camera package. Displaying the camera preview works very well, but when I try to access the image stream via controller.startImageStream the program crashes. I’ve succeded in tracking the source of that bug down, and it seems to me that […]

Categories
Development

how to add clipper to navigation drawer in flutter

I have created a navigation drawer.But I don’t know how to add clipper using custom_clippers package I want to add clipper image in the header section of my drawer. here is the code Widget _createHeader() { return DrawerHeader( // margin: EdgeInsets.zero, // padding: EdgeInsets.zero, child:ClipPath( clipper: SideCutClipper(), child: Container( height: 600, width: 500 , color: […]

Categories
Development

Custom shape in SliverAppbar in Flutter

When SliverAppbar is expanded I want FlexibleSpaceBar should have custom shape. I am having a container in scaffold body with topLeft and topRight borderRadius. But, the corner background is not seems with the image that FlexibleSpaceBar is containing. Scaffold( body: NestedScrollView( controller: _scrollController, headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) { return <Widget>[ SliverAppBar( expandedHeight: kExpandedHeight, floating: […]

Categories
Development

After adding dismissible my stack layout widget become dead

I added dismissible widget in my listview flutter app. after adding it my stack layout widget become a dead code and the list is not showing in my app. it showing like ‘instance of tasks’. but without dismissible the list is working fine. Please brother help me out from this problem. my code below- @override […]