feup_plotter 0.0.4 copy "feup_plotter: ^0.0.4" to clipboard
feup_plotter: ^0.0.4 copied to clipboard

Flutter library to generate different types of chart. Provides ability to display information in cool and reliable way. Suitable for statistical information, trending data, etc.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:feup_plotter/feup_plotter.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});
  final String title;
  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  List<List<int>> result = [];
  @override
  void initState() {
    super.initState();
    result = [
      [193, 192, 190, 1, 190, 188, 1, 8, 200, 193, 192, 190],
      [160, 177, 177, 190, 173, 172, 170, 160, 180, 8, 188, 160]
    ];
  }

  @override
  Widget build(BuildContext context) {
    return FeupPlotter(
      names: const ["Microsoft Inc.", "Testa"],
      colors: const [Colors.red, Colors.blue],
      labels: const [
        "january",
        "february",
        "March",
        "April",
        "May",
        "June",
        "July",
        "August",
        "September",
        "October",
        "November",
        "December"
      ],
      result: result,
      appBarBgColor: Colors.green,
      screenTitle: "Company's revenue in last seven days",
    );
  }
}
2
likes
140
pub points
21%
popularity

Publisher

unverified uploader

Flutter library to generate different types of chart. Provides ability to display information in cool and reliable way. Suitable for statistical information, trending data, etc.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, top_snackbar_flutter

More

Packages that depend on feup_plotter