I want to implement something like this from Android in Flutter. Content will be dynamically created. I don't want to use flutter swiper because it has bugs and it is not maintained anymore. How can I implement this?
Another example is here
Edit: Let me clarify something: I don't want any code or work from you. Just asking the logic for how to do ViewPager and PageTransformer in Flutter. Because I tried PageView, Stack to implement this but I can not establish the logic.
Related
I am just learning flutter and I am wondering if it is possible to change the properties of a widget from the code.
I am familiar with WPF, where I can just access the Elements by a name that is given to them (e.g. "btnIncreaseCounter") and then say btnIncreaseCounter.Background = Colors.Orange.
Does a similar concept exist in Flutter? Or how do I modify my widgets from the code?a
You can do it in flutter using key of particular widget,
but flutter is not designed to code this way, flutter provides you with much easy and best practices to achieve the same.
I want something like this:
Circular ListView Example
But, I have been looking everywhere and can't find someway to do so in flutter, is it possible? if not in what framework or language, is this possible?
Note: Already Tried This How to create circular ListView in Flutter It doesn't spin nor it can I select any of the items, so generally it doesn't work
I have two questions with and "if" regarding the first question. As the title says I know it's better to have one MaterialApp in an App in Flutter and making Scaffold widgets for screens. But in a situation like this App which I followed for learning purposes and it's really written well and very clean. but it uses "TabBarView" as a default home for the entire app. So if I want to add another screen like "LoginSreen" that's not part of the "TabBarView" it's not inheriting the "MaterialApp" widget features. So I have to add a "MaterialApp" widget independently for that screen.
So the question is, is it ok to have two "MaterialApp" widgets in a situation like this?
if yes does it affect any variables that's shared among the screens like "SharedPreference"? or what does it affect?
If it's a bad behavior to have two "MaterialApp" widgets to in an App, Then how can you get rid of the "NavScreen()" and implement the TabBarView in the screens, Because I have tried many ways and looked at many of open source projects like this they have "TabBarView" widget as the body and start of the project.
yes you can definitely have two mat apps. but its not recommended.
I want to make a widget like this, I am a beginner - how can I make this?
There is one additional constraint: the selection bar above can have more than 3 options.
This code will help to you make swiper page design
Flutter dependency : flutter_swiper
https://github.com/lohanidamodar/flutter_ui_challenges/blob/master/lib/src/pages/animations/animation1/animation1.dart
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 :)