juliansteenbakker / another_transformer_page_view Goto Github PK
View Code? Open in Web Editor NEWFork from transformer_page_view
License: MIT License
Fork from transformer_page_view
License: MIT License
Hi,
I am using your plugin, I have a list of 20 items, when I scroll to the last page it does not go to the first one as expected, it gives a red screen with this error.
RangeError (index): Invalid value: Not in inclusive range 0..19: 20
and here is the configuration of the PageTransformer
TransformerPageView(
key: _key,
scrollDirection: Axis.horizontal,
pageSnapping: true,
loop: true,
physics: BouncingScrollPhysics(),
pageController: _pageController,
transformer: AccordionTransformer(),
onPageChanged: _onPageChanged,
itemCount: questionList.length,
itemBuilder: (context, i) {
}
When I tried to comment the pageController it works fine, but I need the controller to pass it to indicators class so when I click on the indicator it will animateTo page.
Describe the bug
Getting null-aware warning on console.
To Reproduce
Steps to reproduce the behavior:
flutter run
Expected behavior
There should have been no warning on the console.
Information (please complete the following information):
Additional context
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/another_transformer_page_view-1.1.0/lib/src/another_transformer_page_view.dart:519:22: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance!.addPostFrameCallback(_onGetSize);
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/another_transformer_page_view-1.1.0/lib/src/another_transformer_page_view.dart:537:22: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance!.addPostFrameCallback(_onGetSize);
^
WidgetsBinding.instance!.addPostFrameCallback 'WidgetsBinding' which excludes null
我有100个数据页面,在安卓设备上就感觉滑动卡顿
Hey,
the TransformerPageView
is working normally in android but no scroll in windows !
pls upgrade to lints since pedantic is deprcated
dart pub upgrade --major-versions
pedantic 1.11.1 (discontinued replaced by lints)
dart pub deps
|-- another_transformer_page_view 1.0.1
| |-- pedantic 1.11.1
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.