A label widget that appears on other widgets, and its internal text adapts to the label size
Revised from https://github.com/flyou/label_view
To use this packages, add label_auto_text as a dependency in your pubspec.yaml file.
import 'package:label_auto_text.dart';
@override
Widget build(BuildContext context) {
return LabelViewDecoration(
size: Size(80.0, 80.0),//label size
labelColor: Colors.red,//label color
labelAlignment: LabelAlignment.leftTop,//The orientation of the label attached to the widget
useAngle: true,//
labelText: "Hot",
labelTextColor: Colors.white,
child: _builderItem()//Label attached widget
);
}