Why this Widget is not appearing in a flutter app? - flutter

I'm trying to build my first flutter app for study purpose. I don't know why a component is not appearing in the screen.
My code:
Am I doing something wrong? As you can see buildAirportSelector() is called twice, only one of them is on the screen.
Thank you in advance

Related

How to show timeline like a grid view in flutter

I'm trying to create a timeline grid in my flutter event app to display different events with their time.
If you have any idea about how to implement this widget in flutter please help me. Any suggestion or solution will be appreciated.
Thanks

Flutter to native- Calling native android or ios screen as a widget in flutter

I got a requirement to use the natively developed screen as a form of widget in the flutter code.
say i have a screen where half of the screen contains google-map for some height and rest of the design includes some other widgets. Here i want the google-map widget-a natively developed screen in the flutter as a widget(not as a screen directly but as a form of widget).
I want to know whether it is possible to do this way or not if yes how can we achieve this if anyone have any resources or links please share , it would be helpful to me.
Thanks in advance.

Flutter Modal Sheet

I have seen and tried the 'showModalBottomSheet' widget in flutter, and thought whether there was a widget like 'top sheet modal'. like whatsapp when a message comes in. as below,
Thanks in advance.
If you need a 'top' modal sheet inside the app, try using the Banner widget: https://docs.flutter.io/flutter/widgets/Banner-class.html.
Otherwise, what is shown is screenshot is a notification which appears differently on iOS and Android.

Flutter SliverAppBar similar of iPhone Google Maps

I try to implement in Flutter a similar Google Maps AppBar using CustomScrollView and SliverAppBar with an flexibleSpaceBar, but I don't found any option to display an widget only on "opened" state of AppBar.
The representation of result pretended is this:
Opened View
Bar View
After try develop this, I don't have success.
Any idea how to make this?
UPDATE
The needed effect is visualized in that gif:
via GIPHY
Hi, I think you are looking for something like this.
if yes, you can find the code in flutter gallery app.
Hope it helps :)

How to show batch no on application icon?

In iPhone we can show the batch number on the application icon. i want to do the same thing for Android application icon.
I have seen the same thing in Android "Message" application icon. I you receive one message, it will show "1" on the icon.
We can use Widget to do this. But I don't want to use Widget.
Is there any possibility to do this without widgets ?
Please give some idea about this.
Is there any possibility to do this without widgets ?
No, sorry.
BTW, they are called "app widgets". "Widgets" are things like EditText and Button.