AriesHoo / label_view

Flutter LabelView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Flutter LabelView

License:Apache License 2.0


Languages

Language:Dart 84.7%Language:Objective-C 10.3%Language:Java 5.0%