introduction_screen 0.0.4

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 75

introduction_screen #

Introduction screen allow you to have a screen at launcher for example, where you can explain your app. This Widget is customizable (more in the future) with a great design.

Introduction_screen use another package, dots_indicator, that I also created.

Installation #

You just need to add introduction_screen as a dependency in your pubspec.yaml file.

dependencies:
  introduction_screen: ^0.0.4

Example #

In these example, listPagesViewModel is the list of pages. A page is base on PageViewModel. See example of a PageViewModel below.

PageViewModel #

Simple page #

This example only define title, body and an image (you can define any widget)

new PageViewModel(
  "Title of first page",
  "Here you can write the description of the page, to explain someting...",
  Image.network("https://domaine.com/image.png", height: 175.0),
)

Page with custom colors #

This example show you how to define the color of the page (background but also the dot indicator color)

new PageViewModel(
  "Title of first page",
  "Here you can write the description of the page, to explain someting...",
  Image.asset("res/images/logo.png", height: 175.0),
  pageColor: Colors.blue,
  progressColor: Colors.red,
)

Page with custom text style #

This example show you how to define another TextStyle for the title and the body

new PageViewModel(
  "Title of first page",
  "Here you can write the description of the page, to explain someting...",
  const Icon(Icons.android),
  titleTextStyle: const TextStyle(color: Colors.orange),
  bodyTextStyle: const TextStyle(fontWeight: FontWeight.w700, fontSize: 20.0),
)

IntroScreen #

Simple intro screen #

Simple intro screen

Base intro

new IntroScreen(
  pages: listPagesViewModel,
  onDone: () {
    // When done button is press
  }
); //Material App

Intro screen with skip button #

With skip button

new IntroScreen(
  pages: listPagesViewModel,
  onDone: () {
    // When done button is press
  },
  showSkipButton: true,
);

Intro screen with custom button text #

Custom button text

new IntroScreen(
  pages: listPagesViewModel,
  onDone: () {
    // When done button is press
  },
  showSkipButton: true,
  skip: const Icon(Icons.skip_next),
  next: const Icon(Icons.next)
);

0.0.4 #

  • Improve customization
  • Change String type to Widget for buttons, to set an Icon for example
  • Remove nextText parameter, use next instead
  • Remove doneText parameter, use done instead
  • Remove skipText parameter, use skip instead

0.0.3 #

  • Fix design padding layout on small device
  • Improve layout Expanded flex

0.0.2 #

  • Published on Pub
  • Fix bugs

0.0.1 #

  • First version

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  introduction_screen: ^0.0.4

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:introduction_screen/introduction_screen.dart';
  
Version Uploaded Documentation Archive
0.0.4 Oct 7, 2018 Go to the documentation of introduction_screen 0.0.4 Download introduction_screen 0.0.4 archive
0.0.3 Sep 21, 2018 Go to the documentation of introduction_screen 0.0.3 Download introduction_screen 0.0.3 archive
0.0.2 Sep 10, 2018 Go to the documentation of introduction_screen 0.0.2 Download introduction_screen 0.0.2 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
66
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
60
Overall:
Weighted score of the above. [more]
75
Learn more about scoring.

We analyzed this package on Feb 14, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.13
  • Flutter: 1.2.0

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and introduction_screen.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.58.0 <3.0.0
dots_indicator ^0.0.4 0.0.4
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test