label_view
1.import LableView.dart
import 'package:label_view/LableView.dart';
2.use in Code
void main() {
runApp(new MaterialApp(
home: LabelViewDemo(),
));
}
class LabelViewDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("LabelViewDemo"),
),
body: LabelView( Size(500, 100)),
);
}
}
desc of aattribute
final Size size; //the size of labelView
final String labelText;// label text
final TextStyle textStyle;// label text style
final Color labelColor;// label color
final Color backgroundColor;// label background color
final bool useAngle;// use angele or false
final labelAlignment;// labelAlignment in widget
picture
Contact me
blog: flutter.link
email: email me
License
AdCountView is under the Apache2.0 license. See the LICENSE file for details.