flutter_icon_shade 2.0.4 copy "flutter_icon_shade: ^2.0.4" to clipboard
flutter_icon_shade: ^2.0.4 copied to clipboard

flutter icon shadow.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.deepPurple,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key}) : super(key: key);

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black54,
      appBar: AppBar(
        backgroundColor: Colors.black,
        title: Text("Tab Bar Animation"),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                IconShade(Icon(Icons.lightbulb_outline,
                    color: Colors.lightBlueAccent, size: 36)),
                IconShade(
                  Icon(Icons.lightbulb_outline,
                      color: Colors.lightBlueAccent, size: 36),
                  shadowColor: Colors.lightBlueAccent.shade100,
                ),
                IconShade(
                  Icon(Icons.lightbulb_outline,
                      color: Colors.lightBlueAccent, size: 36),
                  showShadow: false,
                )
              ],
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                IconShade(
                  Icon(Icons.home, color: Colors.green.shade900, size: 36),
                  shadowColor: Colors.yellowAccent,
                ),
                IconShade(
                    Icon(Icons.home, color: Colors.green.shade900, size: 36)),
                IconShade(
                  Icon(Icons.home, color: Colors.green.shade900, size: 36),
                  showShadow: false,
                )
              ],
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                IconShade(
                  Icon(Icons.access_alarm, color: Colors.black54, size: 36),
                  shadowColor: Colors.yellowAccent.shade400,
                ),
                IconShade(
                  Icon(Icons.access_alarm, color: Colors.black54, size: 36),
                  shadowColor: Colors.red.shade400,
                ),
                IconShade(
                  Icon(Icons.access_alarm, color: Colors.black54, size: 36),
                  shadowColor: Colors.cyanAccent.shade400,
                )
              ],
            ),
          ],
        ),
      ),
    );
  }
}
0
likes
105
pub points
41%
popularity

Publisher

unverified uploader

flutter icon shadow.

Repository (GitHub)
View/report issues

Documentation

API reference

License

CC0-1.0 (LICENSE)

Dependencies

flutter, flutter_lints

More

Packages that depend on flutter_icon_shade