recursive_tree_flutter 0.0.7 copy "recursive_tree_flutter: ^0.0.7" to clipboard
recursive_tree_flutter: ^0.0.7 copied to clipboard

A tree-view package which focuses on tree data structure and displays it into UI.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'screens/expandable_multiple_choice/expandable_multiple_choice_screen.dart';
import 'screens/expandable_single_choice/expandable_single_choice_screen.dart';
import 'screens/stack/stack_screen.dart';
import 'screens/vts/vts_screen.dart';
import 'widgets/custom_outlined_btn.dart';

void main() {
  runApp(const MainApp());
}

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: MyApp(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text("Tree View Flutter Example")),
      body: const Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            CustomOutlinedButton(
              screen: StackScreen(),
              title: "Stack",
            ),
            //_____________________
            Divider(
              thickness: 2,
              height: 50,
              color: Colors.black,
            ),
            //_____________________
            CustomOutlinedButton(
              screen: ExpandableMultipleChoiceScreen(),
              title: "Expandable Multiple Choice",
            ),
            //_____________________
            Divider(
              thickness: 2,
              height: 50,
              color: Colors.black,
            ),
            //_____________________
            CustomOutlinedButton(
              screen: ExpandableSingleChoiceScreen(),
              title: "Expandable Single Choice",
            ),
            //_____________________
            Divider(
              thickness: 2,
              height: 50,
              color: Colors.black,
            ),
            //_____________________
            CustomOutlinedButton(
              screen: VTSScreen(),
              title: "VTS Department Tree",
            ),
          ],
        ),
      ),
    );
  }
}
29
likes
160
pub points
79%
popularity

Publisher

unverified uploader

A tree-view package which focuses on tree data structure and displays it into UI.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on recursive_tree_flutter