app_walk_through 1.0.4 copy "app_walk_through: ^1.0.4" to clipboard
app_walk_through: ^1.0.4 copied to clipboard

A app walk through library to define or showcase app features to the users.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:app_walk_through/app_walk_through.dart';
void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'App Walk Through Example',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
        useMaterial3: true,
      ),
      home: const ExampleScreen(),
    );
  }
}

class ExampleScreen extends StatelessWidget {
  const ExampleScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: AppWalkThrough(
        models: [
          AppWalkThroughDataModel(
            title: "Welcome to App Walk Through",
            description: "This is a simple example of how to use the app_walk_through package to showcase features.",
            image: "assets/img_1.jpg",
          ),
          AppWalkThroughDataModel(
            title: "Easy to Use",
            description: "Just define your models and pass them to the widget. It handles the rest!",
            image: "assets/img_2.jpg",
          ),
          AppWalkThroughDataModel(
            title: "Highly Customizable",
            description: "Customize colors, text styles, and button behaviors easily.",
            image: "assets/img_3.jpg",
          ),
        ],
        onNextButtonPressed: () {
          ScaffoldMessenger.of(context).showSnackBar(
            const SnackBar(content: Text("Walkthrough Finished!")),
          );
        },
        onSkipButtonPressed: () {
          ScaffoldMessenger.of(context).showSnackBar(
            const SnackBar(content: Text("Walkthrough Skipped!")),
          );
        },
      ),
    );
  }
}
2
likes
160
points
126
downloads

Documentation

API reference

Publisher

verified publisherpresswink.com

Weekly Downloads

A app walk through library to define or showcase app features to the users.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter, touch_ripple_effect

More

Packages that depend on app_walk_through