at_viz 0.0.2 copy "at_viz: ^0.0.2" to clipboard
at_viz: ^0.0.2 copied to clipboard

The at_viz library comes with highly customizable gauges charts and gauges.

example/lib/main.dart

import 'package:at_viz_example/screens/gauges.dart';
import 'package:at_viz_example/screens/time_series.dart';
import 'package:flutter/material.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return const ExampleBody();
  }
}

class ExampleBody extends StatefulWidget {
  const ExampleBody({super.key});

  @override
  State<ExampleBody> createState() => _ExampleBodyState();
}

class _ExampleBodyState extends State<ExampleBody> {
  var _selectedIndex = 0;

  void _onItemTapped(int index) {
    setState(() {
      _selectedIndex = index;
    });
  }

  final List<Widget> _navigationBarBody = [
    const TimeSeriesChartExample(
      title: 'Charts example',
    ),
    const GaugesExample()
  ];

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        bottomNavigationBar: BottomNavigationBar(
          items: const <BottomNavigationBarItem>[
            BottomNavigationBarItem(
              icon: Icon(Icons.show_chart_sharp),
              label: 'Charts',
            ),
            BottomNavigationBarItem(
              icon: Icon(Icons.radio_button_off_outlined),
              label: 'Gauges',
            ),
          ],
          currentIndex: _selectedIndex,
          selectedItemColor: Colors.amber[800],
          onTap: _onItemTapped,
        ),
        body: _navigationBarBody[_selectedIndex],
      ),
    );
  }
}
7
likes
140
points
25
downloads

Publisher

verified publisheratsign.org

Weekly Downloads

The at_viz library comes with highly customizable gauges charts and gauges.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on at_viz