flutter_light_indicator

Last updated:

0 purchases

flutter_light_indicator Image
flutter_light_indicator Images
Add to Cart

Description:

flutter light indicator

Widgets in the form of light indicators of different shapes for your designs.
Designs Available
-Round Light
-Square Light
-Total Square Light
Round

Square

Total Square

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),),
),
);
}
}


copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.