plough 0.6.0 copy "plough: ^0.6.0" to clipboard
plough: ^0.6.0 copied to clipboard

Flutter package to render interactive network graph visualizations, featuring multiple layout algorithms, customizable appearance.

example/lib/main.dart

import 'package:example/app_state.dart';
import 'package:example/widget/main_page.dart';
import 'package:flutter/material.dart';
import 'package:plough/plough.dart';
import 'package:provider/provider.dart';

void main() {
  Plough()
      //..debugLogEnabled = true
      //..debugViewEnabled = true
      .debugSignalsEnabled = false;
  runApp(
    ChangeNotifierProvider(
      create: (_) => AppState(),
      child: const MyApp(),
    ),
  );
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Graph View Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        brightness: Brightness.light,
        /*
        scrollbarTheme: const ScrollbarThemeData(
          thickness: WidgetStatePropertyAll(8),
          thumbColor: WidgetStatePropertyAll(Colors.green),
        ),
         */
      ),
      home: const MyHomePage(title: 'Plough Demo'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({required this.title, super.key});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: const Center(
        child: MainPage(),
        //child: GraphArea(),
      ),
    );
  }
}
9
likes
140
points
35
downloads
screenshot

Publisher

verified publisherszktty.jp

Weekly Downloads

Flutter package to render interactive network graph visualizations, featuring multiple layout algorithms, customizable appearance.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

collection, equatable, event_bus, fast_immutable_collections, flame, flutter, freezed_annotation, json_annotation, logger, provider, signals, signals_flutter, uuid, very_good_analysis, vs_scrollbar

More

Packages that depend on plough