graphic_representation 1.0.7 copy "graphic_representation: ^1.0.7" to clipboard
graphic_representation: ^1.0.7 copied to clipboard

outdated

easy graphic representation, using classes likes DiscreteGraphic for example. You can easily adapt your graphic with your android or ios device screen.

example/lib/main.dart

import 'package:example/circular_graphic_page.dart';
import 'package:example/discrete_graphic_page.dart';
import 'package:example/ecc_ecd_graphic_page.dart';
import 'package:example/function_graphic_page.dart';
import 'package:example/parametrized_graphic_page.dart';
import 'package:example/tablesigne_page.dart';
import 'package:example/tablevalues_page.dart';
import 'package:example/tablevariation_page.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      initialRoute: "/",
      routes: <String, WidgetBuilder>{
        "/": (BuildContext context) =>
            MyHomePage(title: 'Graphic_Representation : examples'),
        "discrete_graphic_page": (BuildContext context) =>
            DiscreteGraphicPage(),
        "function_graphic_page": (BuildContext context) =>
            FunctionGraphicPage(),
        "circular_graphic_page": (BuildContext context) =>
            CircularGraphicPage(),
        "ecc_ecd_graphic_page": (BuildContext context) => EccEcdGraphicPage(),
        "parametrized_graphic_page": (BuildContext context) =>
            ParametrizedGraphicPage(),
        "tablevalue_page": (BuildContext context) =>
            TableValuePage(),
        "tablesign_page": (BuildContext context) =>
            TableSignPage(),
        "tablevariation_page": (BuildContext context) =>
            TableVariationPage(),
      },
      debugShowCheckedModeBanner: false,
    );
  }
}

ElevatedButton myButton(BuildContext context, String title, String pushName) {
  return ElevatedButton(
      onPressed: () {
        Navigator.pushNamed(context, pushName);
      },
      style: ElevatedButton.styleFrom(
        primary: Colors.blueAccent,
      ),
      child: Padding(
          padding: EdgeInsets.all(5.0),
          child: Text(
            title,
            textScaleFactor: 1.8,
          )));
}

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

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
          child: Column(
        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
        children: <Widget>[
          myButton(context, "DiscreteGraphic", "discrete_graphic_page"),
          myButton(context, "FunctionGraphic1", "function_graphic_page"),
          myButton(context, "FunctionGraphic2", "parametrized_graphic_page"),
          myButton(context, "TableValue", "tablevalue_page"),
          myButton(context, "TableSign", "tablesign_page"),
          myButton(context, "TableVariation", "tablevariation_page"),
          myButton(context, "CircularGraphic", "circular_graphic_page"),
          myButton(context, "EccEcdGraphic", "ecc_ecd_graphic_page")
        ],
      )),
    );
  }
}
5
likes
0
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

easy graphic representation, using classes likes DiscreteGraphic for example. You can easily adapt your graphic with your android or ios device screen.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on graphic_representation