flutter_light_indicator 0.0.1 copy "flutter_light_indicator: ^0.0.1" to clipboard
flutter_light_indicator: ^0.0.1 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 '../flutter_light_indicators.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.orange,stateText: true),
            SquareLight(size: 70, state: !state, color: Colors.orange,stateText: true,),
            TotalSquareLight(size: 60, state: state, color: Colors.blue),
            TotalSquareLight(size: 60, state: !state, color: Colors.blue,stateText: true,textColor: Colors.red),
          ],),
        floatingActionButton: FloatingActionButton(onPressed: ()=>setState(() {state = !state;}),
          child: const Icon(Icons.refresh),),
      ),
    );
  }
}


2
likes
0
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

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_light_indicator