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

A Flutter package for graphing mathematical functions in your app, enabling interactive plotting and visualization.

Graph Calculator Package #

A Flutter package for creating interactive and customizable graphs in your Flutter applications.

graph_calculator

Features #

  • Plot mathematical functions on a graph.
  • Customize graph appearance, including colors, grid settings, and more.
  • Easily integrate graphs into your Flutter apps.

Installation #

flutter pub add graph_calculator

Usage #

import 'package:flutter/material.dart';
import 'package:graph_calculator/controllers/graph_controller.dart';
import 'package:graph_calculator/models/models.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Graph Calculator Example'),
        ),
        body: Center(
          child: GraphWidget(
            graphController: GraphController(graph: Graph()),
          ),
        ),
      ),
    );
  }
}

For detailed usage instructions and examples, please check out the example provided in this package.

Customization #

You can customize various aspects of the graph, such as colors, grid settings, and more, by configuring the Graph class and the GraphController.

GraphController(
  graph: Graph(
    gridStep: 50,
    backgroundColor: Colors.blueGrey,
    axesColor: Colors.white,
    gridColor: Colors.grey,
    gridWidth: 1.0,
    axesWidth: 2.0,
    drawAxes: true,
    drawNumbers: true,
  ),
);

Contributions #

Contributions and feedback are welcome! If you have any suggestions or find issues, please feel free to create an issue or submit a pull request.

License #

This package is open-source and available under the MIT License.

4
likes
150
pub points
21%
popularity

Publisher

unverified uploader

A Flutter package for graphing mathematical functions in your app, enabling interactive plotting and visualization.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on graph_calculator