Skip to content

Commit

Permalink
Release 2.0.2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
champ96k committed Aug 14, 2021
1 parent 26ba285 commit 0200d59
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@

## [0.0.2] - Release

## [0.0.1] - Release
- Upgrade to flutter null safe

## [2.0.2] - Release
- Imrpove documentation and format code

* Package Upgrade
12 changes: 6 additions & 6 deletions example/example_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@ import 'package:flutter/material.dart';
import 'package:flutter_onboarding_screen/OnbordingData.dart';
import 'package:flutter_onboarding_screen/flutteronboardingscreens.dart';


class TestScreen extends StatelessWidget {
final List<OnbordingData> list = [
OnbordingData(
imagePath: "images/pic11.png",
title: "Search",
desc:
"Discover restaurants by type of meal, See menus and photos for nearby restaurants and bookmark your favorite places on the go",
"Discover restaurants by type of meal, See menus and photos for nearby restaurants and bookmark your favorite places on the go",
),
OnbordingData(
imagePath: "images/pic12.png",
title: "Order",
desc:
"Best restaurants delivering to your doorstep, Browse menus and build your order in seconds",
"Best restaurants delivering to your doorstep, Browse menus and build your order in seconds",
),
OnbordingData(
imagePath: "images/pic13.png",
title: "Eat",
desc:
"Explore curated lists of top restaurants, cafes, pubs, and bars in Mumbai, based on trends.",
"Explore curated lists of top restaurants, cafes, pubs, and bars in Mumbai, based on trends.",
),
];

@override
Widget build(BuildContext context) {
return IntroScreen(
list, MaterialPageRoute(builder: (context) => TestScreen()),
return IntroScreen(
list,
MaterialPageRoute(builder: (context) => TestScreen()),
);
}
}
4 changes: 1 addition & 3 deletions lib/OnbordingData.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ class _OnbordingDataState extends State<OnbordingData> {
Image(
fit: BoxFit.fitWidth,
width: double.infinity,
height: MediaQuery.of(context).size.height*0.40,
height: MediaQuery.of(context).size.height * 0.40,
image: AssetImage(imagePath),
),

SizedBox(
height: 12.0,
),

Flexible(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
Expand Down
8 changes: 4 additions & 4 deletions lib/flutteronboardingscreens.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ class IntroScreenState extends State<IntroScreen> {
onPressed: () => lastPage
? null
: widget.skipPage(
context,
),
context,
),
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 16.0),
Expand All @@ -108,8 +108,8 @@ class IntroScreenState extends State<IntroScreen> {
onPressed: () => lastPage
? widget.skipPage(context)
: controller.nextPage(
duration: Duration(milliseconds: 300),
curve: Curves.easeIn),
duration: Duration(milliseconds: 300),
curve: Curves.easeIn),
),
],
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: flutter_onboarding_screen
description: A flutter package which help developer in creating a onboarding screens of their app.

version: 2.0.1
version: 2.0.2
homepage: https://github.com/champ96k/flutter-onboarding-screen

environment:
Expand Down

0 comments on commit 0200d59

Please sign in to comment.