Skip to content

Commit

Permalink
minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iamSahdeep committed Oct 11, 2019
1 parent 4af79ab commit 0c1d86f
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 120 deletions.
124 changes: 58 additions & 66 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified android/.idea/caches/gradle_models.ser
Binary file not shown.
55 changes: 1 addition & 54 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import 'package:flutter/material.dart';
import 'package:liquid_swipe/Constants/Helpers.dart';
import 'package:liquid_swipe/liquid_swipe.dart';

import 'secondExample.dart';

final GlobalKey<NavigatorState> navigatorKey = new GlobalKey<NavigatorState>();
void main() {
runApp(
new MyApp(),
Expand Down Expand Up @@ -214,68 +211,18 @@ class MyApp extends StatelessWidget {
],
),
),
Container(
color: Colors.redAccent,
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Image.asset(
'assets/1.png',
fit: BoxFit.cover,
),
Padding(padding: const EdgeInsets.all(20.0)),
Column(
children: <Widget>[
new Text(
"Lets ",
style: TextStyle(
fontSize: 30,
fontFamily: "Billy",
fontWeight: FontWeight.w600),
),
new Text(
"Try Another Example",
style: TextStyle(
fontSize: 30,
fontFamily: "Billy",
fontWeight: FontWeight.w600),
),
FlatButton(
disabledColor: Colors.deepPurpleAccent,
onPressed: () {
Navigator.push(
navigatorKey.currentContext,
MaterialPageRoute(builder: (context) => SecondExample()),
);
},
child: Text(
"Click Here",
style: TextStyle(
fontSize: 30,
fontFamily: "Billy",
fontWeight: FontWeight.w600),
),
),
],
)
],
),
),
];
int page = 0;
UpdateType updateType;
@override
Widget build(BuildContext context) {
return new MaterialApp(
navigatorKey: navigatorKey,
home: new Scaffold(
body: LiquidSwipe(
pages: pages,
fullTransitionValue: 200,
enableSlideIcon: true,
enableLoop: false,
enableLoop: true,
positionSlideIcon: 0.5,
waveType: WaveType.liquidReveal,
onPageChangeCallback: (page) => pageChangeCallback(page),
Expand Down

0 comments on commit 0c1d86f

Please sign in to comment.