aeyrium / cube_transition Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
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.
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)
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.
I need to put Raised button on the CubeWidget's images using Stack, but it is not working. Any solution ?
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
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.
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.