flutter_circle_grade 1.0.2 copy "flutter_circle_grade: ^1.0.2" to clipboard
flutter_circle_grade: ^1.0.2 copied to clipboard

This package provides a customizable gauge indicator that can be used in your Flutter application. The gauge indicator is ideal for adding a modern and interactive element to your application's user i [...]

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_circle_grade/view/circle_view.dart';

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const ExampleView(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: CircleDegree(
          /*
          When creating an instance of MainCircle,
          it's essential to provide all three parameters: max, min, and value.
          These parameters work together to define the range and current position within that range.
          The max and min parameters establish the upper and lower limits, respectively,
          while the value parameter indicates the current value within this range.
          Omitting any of these parameters may result in unexpected behavior,
          as the class relies on the relationship between max, min, and value to function correctly.
          */
          mainCircle: MainCircle(size: 50, max: 500, min: 100, value: 400),
        ),
      ),
    );
  }
}
3
likes
140
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

This package provides a customizable gauge indicator that can be used in your Flutter application. The gauge indicator is ideal for adding a modern and interactive element to your application's user interface. It offers quick and easy integration.

Documentation

API reference

License

MIT (license)

Dependencies

cupertino_icons, flutter

More

Packages that depend on flutter_circle_grade