搜索插件、代码仓与 APP 分类

nice_intro 封面
插件详情v0.2.1

nice_intro

轻松让您的用户了解您的应用!此包将帮助您为您的应用创建精美的介绍页面。

近 30 天下载
45
喜欢数
93
Pub 分数
60

安装插件

flutter pub add nice_intro

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Nice Intro 是一个 Flutter 包,旨在简化移动应用程序中视觉吸引力强的引导屏幕的创建。它使开发者能够构建流畅、可自定义的介绍幻灯片,帮助用户快速了解并参与应用功能。通过直观的配置和简洁的 API,它支持动画、内容布局和过渡效果,专为首次用户体验量身定制。该包注重美学与可用性,让引导过程既吸引人又高效。

适合场景

  • 引导新用户
  • 应用功能演示
  • 首次用户体验
  • 产品发布介绍
  • 用户参与度提升
  • 简化教程流程

主要特点

  • 可定制的幻灯片设计
  • 流畅的动画
  • 与 Flutter 的轻松集成
  • 支持文本、图像和图标
  • 响应式布局处理
  • 可配置的导航控件

适合对象

  • 移动应用开发者
  • UX设计师
  • 初创企业发布应用
  • 需要用户教育的应用程序
  • 有入职需求的项目

使用建议

  • 有限的平台特定自定义
  • 无内置本地化支持
  • 需要手动处理状态管理
  • 依赖外部依赖项以实现高级功能
  • 未针对复杂的多步骤工作流程进行优化

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

nice_intro

Get your users to know your app with ease

Getting Started

Onboarding is a great way to introduce your app to newcomers, to help them quickly adapt to the new conditions so that they can get the most out of your app

Pub Version Donate

A Flutter package to build awesome intro slides for your apps.

Demo

This is somehow what you can expect from this package :)

Package Demo package demo

Installation

Add the following to pubspec.yaml:

dependencies:
  nice_intro: ^0.2.0

Usage Example

First, import the following files

import 'package:nice_intro/intro_screen.dart';
import 'package:nice_intro/intro_screens.dart';

Then, create a list of screens each one with the IntroSreen class:

List<IntroScreen> pages =  [
        IntroScreen(
          title: 'Search',
          imageAsset: 'assets/img/1.png',
          description: 'Quickly find all your messages',
          headerBgColor: Colors.white,
        ),
        IntroScreen(
          title: 'Focused Inbox',
          headerBgColor: Colors.white,
          imageAsset: 'assets/img/2.png',
          description: "We've put your most important, actionable emails here",
        ),
        IntroScreen(
          title: 'Social',
          headerBgColor: Colors.white,
          imageAsset: 'assets/img/3.png',
          description: "Keep talking with your mates",
        ),
      ];

You'll come up with a list of nice slides screens.

Finally, pass the pages to an instance of IntroScreens class:

IntroScreens introScreens = IntroScreens(
      footerBgColor: TinyColor(Colors.blue).lighten().color,
      activeDotColor: Colors.white,
      footerRadius: 18.0,
      indicatorType: IndicatorType.CIRCLE,
      pages:pages

    return Scaffold(
      body: introScreens,
    );

And pass it to your scaffold widget.

Documentation
IntroScreen widget's properties
Name Type Default Description
title String required Set the title of your slide screen
description String required Set the description of your slide screen
header String Container() Set the widget to use as the header part of your screen
imageAsset String null Set the image path of your slide screen
textStyle TextStyle null Set the style of the title and description of your slide
headerBgColor Color Colors.white Set the background color of the slide
headerPadding EdgeInsets EdgeInsets.all(12) Set the padding of the header part of your slide screen
containerBg Color Colors.white Set the wrapper container's background color
IntroScreens widget's properties
Name Type Default Description
slides List<IntroScreen> required list of your slides
onDone Function required Set the action to do when the last slide is reached
onSkip Function required Set the action to do when the user skips the slides
footerRadius double 12.0 Set the radius of the footer part of your slides
footerBgColor Color Color(0xff51adf6) Set the background color of the footer part of your slides
footerGradients List<Color> [] Set the list of colors for the gradient of the footer part of your slides
footerPadding EdgeInsets EdgeInsets.all(24) Set the padding of the footer part of your slides
indicatorType IndicatorType IndicatorType.CIRCLE Set the type of indicator for your slides
activeDotColor Color Colors.white Set the color of the active indicator color
inactiveDotColor Color null Set the color of an inactive indicator color
skipText String "Skip" Set the text of the skip widget
nextWidget Widget Set the widget to use for next interaction of your slides
doneWidget Widget Set the widget to display when the last slide is reached
viewPortFraction double 1.0 Set the viewport fraction of your slides
textColor Color Colors.white Set the text color of the footer part of your slides
physics ScrollPhysics BouncingScrollPhysics Set the physics for the page view
IndicatorType enum properties
  • IndicatorType.CIRCLE
  • IndicatorType.LINE
  • IndicatorType.DIAMOND

Now enjoy!

Refer to example folder and the source code for more information.

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。