peckish_animated_hand_tutorial 1.0.0 copy "peckish_animated_hand_tutorial: ^1.0.0" to clipboard
peckish_animated_hand_tutorial: ^1.0.0 copied to clipboard

A package to guide users through tutorials with animated hands.

example/lib/main.dart

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

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: ShowcaseScreen(),
    );
  }
}

class ShowcaseScreen extends StatelessWidget {
  final GlobalKey buttonKey = GlobalKey();
  final GlobalKey menuKey = GlobalKey();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ShowcaseTutorial(
        items: [
          ShowcaseItem(
            key: buttonKey,
            tooltip: "Click this button to start",
          ),
          ShowcaseItem(
            key: menuKey,
            tooltip: "Access menu options here",
          ),
        ],
        child: Scaffold(
          appBar: AppBar(
            actions: [
              IconButton(
                key: menuKey,
                icon: Icon(Icons.menu),
                onPressed: () {},
              ),
            ],
          ),
          body: Center(
            child: ElevatedButton(
              key: buttonKey,
              onPressed: () {},
              child: Text('Start'),
            ),
          ),
        ),
      ),
    );
  }
}
6
likes
0
points
125
downloads

Publisher

unverified uploader

Weekly Downloads

A package to guide users through tutorials with animated hands.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on peckish_animated_hand_tutorial