skill_tree 0.0.1+3 skill_tree: ^0.0.1+3 copied to clipboard
A package for creating skill trees of any shape and size
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'),
),
],
),
);
}
}