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

A package to guide users through tutorials with animated hands.

example/lib/main.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: HomeScreen(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: PeckishHandTutorial(
        toolTip: const ToolTip(
          toolTipType: ToolTipType.bubble,
          toolTipMessage: "This is a button",
          toolTipStyle: ToolTipStyle(
            backgroundColor: Colors.blue,
          ),
        ),
        haveRippleEffect: true,
        handColor: Colors.green,
        items: [
          ShowcaseItem(

            key: buttonKey,
            tooltip: const ToolTip(toolTipMessage: "button"),
          ),
          ShowcaseItem(
            key: menuKey,
            tooltip: const ToolTip(
              toolTipType: ToolTipType.bubble,
              toolTipMessage: "drawer", toolTipStyle: ToolTipStyle()),
          ),
        ],
        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
150
points
131
downloads

Publisher

unverified uploader

Weekly Downloads

A package to guide users through tutorials with animated hands.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on peckish_animated_hand_tutorial