rename IconShadowWidget -> IconShadeWidget

This commit is contained in:
Chen Asraf
2021-07-31 01:04:33 +03:00
parent e05ed6d1a8
commit 95ffff4bc4
4 changed files with 16 additions and 12 deletions

View File

@@ -1,5 +1,9 @@
# CHANGELOG
## [2.0.2]
- Rename component to match package name
## [2.0.1]
- Null safety

View File

@@ -40,14 +40,14 @@ class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
IconShadowWidget(Icon(Icons.lightbulb_outline,
IconShadeWidget(Icon(Icons.lightbulb_outline,
color: Colors.lightBlueAccent, size: 36)),
IconShadowWidget(
IconShadeWidget(
Icon(Icons.lightbulb_outline,
color: Colors.lightBlueAccent, size: 36),
shadowColor: Colors.lightBlueAccent.shade100,
),
IconShadowWidget(
IconShadeWidget(
Icon(Icons.lightbulb_outline,
color: Colors.lightBlueAccent, size: 36),
showShadow: false,
@@ -57,13 +57,13 @@ class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
IconShadowWidget(
IconShadeWidget(
Icon(Icons.home, color: Colors.green.shade900, size: 36),
shadowColor: Colors.yellowAccent,
),
IconShadowWidget(
IconShadeWidget(
Icon(Icons.home, color: Colors.green.shade900, size: 36)),
IconShadowWidget(
IconShadeWidget(
Icon(Icons.home, color: Colors.green.shade900, size: 36),
showShadow: false,
)
@@ -72,15 +72,15 @@ class _MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
IconShadowWidget(
IconShadeWidget(
Icon(Icons.access_alarm, color: Colors.black54, size: 36),
shadowColor: Colors.yellowAccent.shade400,
),
IconShadowWidget(
IconShadeWidget(
Icon(Icons.access_alarm, color: Colors.black54, size: 36),
shadowColor: Colors.red.shade400,
),
IconShadowWidget(
IconShadeWidget(
Icon(Icons.access_alarm, color: Colors.black54, size: 36),
shadowColor: Colors.cyanAccent.shade400,
)

View File

@@ -1,12 +1,12 @@
import 'package:flutter/material.dart';
import 'dart:ui' as ui;
class IconShadowWidget extends StatelessWidget {
class IconShadeWidget extends StatelessWidget {
final Icon icon;
final bool showShadow;
final Color? shadowColor;
IconShadowWidget(this.icon, {this.showShadow = true, this.shadowColor});
IconShadeWidget(this.icon, {this.showShadow = true, this.shadowColor});
@override
Widget build(BuildContext context) {

View File

@@ -1,6 +1,6 @@
name: flutter_icon_shade
description: flutter icon shadow.
version: 2.0.1
version: 2.0.2
homepage: https://github.com/chenasraf/flutter_flutter_icon_shade
environment: