skill_tree 0.0.1+3 copy "skill_tree: ^0.0.1+3" to clipboard
skill_tree: ^0.0.1+3 copied to clipboard

A package for creating skill trees of any shape and size

example/lib/main.dart

import 'package:example/pages/layered_example_page.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

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

/// Assets from https://opetngameart.org/content/random-rpg-icons-part-1
class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData.dark(),
      // home: const LayeredExamplePage(),
      home: const LayeredExamplePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Skill Trees')),
      body: Column(
        crossAxisAlignment: CrossAxisAlignment.stretch,
        mainAxisAlignment: MainAxisAlignment.center,
        children: <Widget>[
          ListTile(
            onTap: () {
              Navigator.of(context).push(
                MaterialPageRoute<void>(
                  builder: (context) {
                    return const LayeredExamplePage();
                  },
                ),
              );
            },
            title: const Text('Layered Tree'),
            subtitle: const Text('e.g. WoW Classic'),
          ),
        ],
      ),
    );
  }
}
11
likes
110
pub points
32%
popularity

Publisher

unverified uploader

A package for creating skill trees of any shape and size

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

collection, flutter, meta

More

Packages that depend on skill_tree