Giter VIP home page Giter VIP logo

another_transformer_page_view's People

Contributors

dependabot[bot] avatar juliansteenbakker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

another_transformer_page_view's Issues

The transformer does not respect item Count

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.

Getting null-aware warning on console.

Describe the bug
Getting null-aware warning on console.

To Reproduce
Steps to reproduce the behavior:

  1. Go to terminal
  2. Run flutter command flutter run
  3. See warning

Expected behavior
There should have been no warning on the console.

Screenshots
Screenshot 2022-06-13 at 12 50 56 AM copy 2

Information (please complete the following information):

  • Device: iPhone 13
  • Platform mobile
  • Flutter version: 3.0.2
  • Package version 1.1.0

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);
                     ^

加载卡顿

我有100个数据页面,在安卓设备上就感觉滑动卡顿

pedantic dep prevent null safety migration

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.