introscreen 0.1.0

Flutter Android iOS web

A new Flutter package project.

introscreen #

A IntroScreen package for Flutter.

Getting Started #

In your flutter project add the dependency:

dependencies:
  ...
  introscreen:

Usage #

Create instance of IntroScreen with parametres

  1. items - List
  2. navigateAfter - widget to navigate after done or onDonePressed - callback function

Usage example #

Import sqflite.dart

import 'package:sqflite/sqflite.dart';

Demo #

import 'package:introscreen/introscreen.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: IntroScreen(items: [1,2,3,4,5].map<Widget>((int i){
        return Container(
          child: Center(
            child: Text(i.toString()),
          ),);
       }).toList(), navigateAfter: Main(),),
    );
  }
}


class Main extends StatefulWidget {
  @override
  _MainState createState() => _MainState();
}

class _MainState extends State<Main> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('text'),
      ),
      drawer: Drawer(),
      body: Container(
        padding: EdgeInsets.all(32.0),
        child: Center(
          child: Column(
            children: <Widget>[],
          ),
        ),
      ),
    );
  }
}

0
likes
70
pub points
24%
popularity

A new Flutter package project.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

yarosroman@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on introscreen