banner static method

Directionality banner(
})

Create Banner

Implementation

static Directionality banner(
  Widget child, {
  String message = "Banner",
  Color bannerColor = Colors.orange,
  Color textColor = Colors.white,
  BannerLocation bannerLocation = BannerLocation.bottomEnd,
}) {
  return Directionality(
    textDirection: TextDirection.ltr,
    child: Banner(
      color: bannerColor,
      message: message,
      location: bannerLocation,
      child: child,
      textStyle: TextStyle(
        color: textColor,
        fontSize: 10,
        fontWeight: FontWeight.bold,
        height: 1.0,
      ),
    ),
  );
}