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

Widgets in the form of light indicators of different shapes for your designs.

Widgets in the form of light indicators of different shapes for your designs.

Designs Available

-Round Light

-Square Light

-Total Square Light

Round

Round Light

Square

Square Light

Total Square

Total Square Light

EXAMPLE

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

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  bool state = true;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Led Indicators'),
        ),
        body: Column(mainAxisAlignment: MainAxisAlignment.spaceEvenly,
          children: [
            RoundLight(size: 80, state: state, color: Colors.red),
            RoundLight(size: 80, state: !state, color: Colors.green),
            SquareLight(size: 70, state: state, color: Colors.lightBlueAccent,stateText: true),
            SquareLight(size: 70, state: !state, color: Colors.lightBlueAccent,stateText: true,),
            TotalSquareLight(size: 60, state: state, color: Colors.purple),
            TotalSquareLight(size: 60, state: !state, color: Colors.purple,stateText: true,),
          ],),
        floatingActionButton: FloatingActionButton(onPressed: ()=>setState(() {state = !state;}),
          child: const Icon(Icons.refresh),),
      ),
    );
  }
}


2
likes
160
pub points
0%
popularity

Publisher

unverified uploader

Widgets in the form of light indicators of different shapes for your designs.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_light_indicator