Categories
Mastering Development

Flutter Duplicated argument child

I was trying to create a rounded box inside my home screen and it was no working because when i added it, it was telling me that the argument child is buplicated, i cannot even add it with the new argument. I will post the code here @override Widget build(BuildContext context) { return ChangeNotifierProvider( builder: […]

Categories
Mastering Development

Get correct position on different device screen

How can we actually get a correct position based on different screen device? In my app, I have a Container . Inside Container, I have added an image inside it. Widget childDot; return Stack(children: <Widget>[ Container( height: MediaQuery.of(context).size.height, width: MediaQuery.of(context).size.width, child: _showImage(), ), childDot = Padding(child: _aSmallDot(), padding: EdgeInsets.only(left: 120,top: 100)) ]); I would like […]

Categories
Mastering Development

How can I iterate over an array of objects which belong to a key value – Flutter

I have a list of data called anchors that has a link to a detailed screen. And each anchor has distribution centers which are an array of nested objects. so I was able to parse an id of each of the anchors to a detailed screen and Oid I am having a challenge to loop […]

Categories
Mastering Development

how set a background color or image in app?

I would like know how we can set a background color (gradient or not) or image when we have a big list of widget on app page. Because we need display all the widgets over the container which display the background no ? For example, we have mobile page with futurebuilder and a lot of […]

Categories
Mastering Development

Error: Problem in switching bw Multiple Tabs. Flutter

So I am trying to create a profile screen with 3 tabs… profile, recent and review however upon trying to do so I am facing an error. I am not able to represent all 3 tabs. Recent tab has this widget Widget RecentItems() { return Padding( padding: const EdgeInsets.all(10.0), child: StreamBuilder( stream: Firestore.instance .collection(“users”) .document(uid) […]

Categories
Mastering Development

Not getting values in Web view fast enough

Hey the problem I am having is kinda unusal.. So am using webviews and as the intialUrl I am using a value I get from the Google cloud_ firestore.. Now to retrieve this link from my fireStore database it takes about 2seconds and during that time my code is running and is thinking that the […]

Categories
Mastering Development

Can not switch to another page

Here is two classes, that I use, and I want to go from home.dart to map.dart I need to be working that FlatButton, where onPressed is MapPage(); I also tried to add MaterialApp, because anything I have seen is done with that, but I didn’t understood how and what is wrong with all of that. […]

Categories
Mastering Development

How to make a fixed blurring overlay in Flutter?

I would like to implement this overlay bar This is what i reached lately (i just want to blur the part below the overlay bar portion, everything else is not a problem) The crucial part is that it must blur the screen portion screen below itself. I have no clue about how should i do […]

Categories
Mastering Development

Get Time Picker’s Value within a Widget

I am trying to get the DateTime that is chosen from the user and save it within an object. This is implemented within the following construction: return Scaffold( appBar: AppBar( title: Text(‘Add/Edit Shift’), ), body: Container( color: Colors.white, margin: EdgeInsets.all(16.0), child: Form( key: _formKey, child: SingleChildScrollView( child: Column( // crossAxisAlignment: CrossAxisAlignment.center, // mainAxisAlignment: MainAxisAlignment.center, children: […]

Categories
Mastering Development

Get Time Picker’s Value within a Widget

I am trying to get the DateTime that is chosen from the user and save it within an object. This is implemented within the following construction: return Scaffold( appBar: AppBar( title: Text(‘Add/Edit Shift’), ), body: Container( color: Colors.white, margin: EdgeInsets.all(16.0), child: Form( key: _formKey, child: SingleChildScrollView( child: Column( // crossAxisAlignment: CrossAxisAlignment.center, // mainAxisAlignment: MainAxisAlignment.center, children: […]