Comments (8)
I updated the code with some changes, try again and let me know if it works for you. Thanks
from flutter-samples.
It's not crashing, but it's not persistent either. Notice the scroll position state and first item in the list
from flutter-samples.
hmm I don't understand, the first element is 'not persistent' of course, only the tab 'persistent' is persistent, the scroll index remains the same when you change between tabs.
from flutter-samples.
Maybe the fact the gif is in loop is misleading.
Video starts on non persistent tab with text "sun aut facere"
Then jump to persistent tab which is by default set to "accuamus beateae..." and no scroll offset.
Then I scrolled to "nihil et amet".
Then started switching tabs
- Test 1 -> Test 2 -> Persistent tab (all looks good)
Then - Non persistent -> Persistent (all looks good)
Then - Test 1 -> Test 2 -> Test 1 -> Non persistent -> Persistent (state is lost)
Scroll position is lost and text is back to "accuamus beateae..."
from flutter-samples.
what version of flutter are you using? could you run flutter doctor? are you testing on android or ios ?
This is mine:
[✓] Flutter (Channel dev, v1.7.4, on Mac OS X 10.14.5 18F132, locale en-PE)
I'm testing on iOS simulator and this is the result :
from flutter-samples.
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [Version 10.0.17134.829], locale hr-HR)[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.4)
[√] VS Code, 64-bit edition (version 1.35.0)
[√] Connected device (1 available)
Testing on Android Pie, both emulator and device.
from flutter-samples.
hmm so it could be something related with android, could you try in an iOS device/simulator please?
from flutter-samples.
same on you!
I've had the same problem as you.
I was using the v1.5.4-hotfix.2 stable version, but I upgraded it to v1.7.10-beta the problem was solved.
from flutter-samples.
Related Issues (20)
- sample request HOT 1
- How to change background color of tab layout HOT 1
- Unresolved reference: getFlutterView and Type mismatch: inferred type is MainActivity but FlutterEngine was expected HOT 2
- [Question] Disable collapsing effect on Collapsing Toolbar HOT 16
- Initial index / infinite loop and Next/Per button HOT 2
- Follow you splash scrren blog to do,but have a problem(Android) HOT 4
- ListView not working when embedded HOT 1
- Show the drawer menu icon HOT 8
- How to use future builder inside silverlist; HOT 4
- Can not persist the state of Page even I have used AutomaticKeepAliveClientMixin HOT 1
- I can not run on my iOS device HOT 1
- can you share Shoes Store source?
- Content overlays on TabBar in CollapsingToolbar
- Build failed with Android HOT 3
- MapBox integration with WMS Source
- Screenshots in README.md HOT 5
- Licensing HOT 3
- tabBarView inside apps clone Twitter Profile HOT 1
- I use your circular_list and i have a question HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-samples.