button98a function

dynamic button98a(
  1. Color color,
  2. IconData _icon,
  3. String text,
  4. dynamic _callback(), {
  5. bool enable = true,
  6. Color iconColor = Colors.white,
  7. double size = 50,
})

Implementation

button98a(Color color, IconData _icon, String text, Function() _callback, {bool enable = true, Color iconColor = Colors.white,
      double size = 50}){
  return Container(
      width: size+10,
      height: size+10,
      child: Stack(
        children: [
          Center(child: button98(color, _icon, _callback, size: size, enable: enable, iconColor: iconColor)),
          if (text.isNotEmpty)
          Container(
              alignment: Alignment.topRight,
              child: Container(
                decoration: BoxDecoration(
                  color: Colors.red,
                  shape: BoxShape.circle,
                ),
                child: Container(
                    padding: EdgeInsets.all(4),
                    child: Text(text, style: aTheme.style12W600White,)
                ),
              )),
        ],
      )
  );
}