Coder Social home page Coder Social logo

cube_transition's People

Contributors

diegoveloper avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

cube_transition's Issues

Infinite transaction not working

Hello, thank you for this beautiful package.
I'd like to implement infinite transaction cube so when the user reached the last item it has to move to the first item and so on.

Preload pictures of next page

First of all thanks for this great library. I want to show pictures on every page like an instagram story. As soon as I switch to the next page, it will be white for a bit until the picture is loaded. Is it possible to somehow preload the picture of the next page, so it will be visible as soon as I change the page?

This is how I am loading the picture right now;: Image.asset(dish.pictureUrl, fit: BoxFit.cover)

Gesture detector not working in children widgets

There are list of widgets:

 var testList = [
      GestureDetector(
        onTap: (){
          print('SCREEN 1');
        },
        child: Container(
          width: double.maxFinite,
          height: double.maxFinite,
          child: Center(
            child: Text('SCREEN 1'),
          ),
        ),
      ),
      GestureDetector(
        onTap: (){
          print('SCREEN 2');
        },
        child: Container(
          color: Colors.white38,
          width: double.maxFinite,
          height: double.maxFinite,
          child: Center(
            child: Text('SCREEN 2'),
          ),
        ),
      ),
    ];

Trying to:

class Sample2 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final height = MediaQuery.of(context).size.height / 2;
    return Scaffold(
      appBar: AppBar(
        title: Text('PageView Cube Transition'),
      ),
      body: Center(
        child: SizedBox(
          height: height,
          child: CubePageView(
            children: testList;
          ),
        ),
      ),
    );
  }
}

Cube transition between widgets is working fine but onTap in GestureDetectors doesn't fire.

Allow configuration to block gesture detection.

Hi there! I tried to find a workaround, but nothing yet.

Feature Request:

Add a configuration param to the cube page view to disable gesture detection (such as swipe) to control the state from the controller.

Happy to send a pull request myself after we discussed how this should be implemented.

Thx everybody

How to use cube_transition with StatefulWidget

Hello dear developers and thank you very much for this great job. I'm a newbie and don't know how to use cube_transition in a statefulwidget. "Exitpage: this," is underlined as an error.

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.