app texts widget
parent
6206641711
commit
f277ef576e
@ -0,0 +1,30 @@
|
|||||||
|
import 'package:doctor_app_flutter/config/size_config.dart';
|
||||||
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
// OWNER : Ibrahim albitar
|
||||||
|
// DATE : 05-04-2020
|
||||||
|
// DESCRIPTION : Customization for Texts in app
|
||||||
|
|
||||||
|
class AppTexts extends StatefulWidget{
|
||||||
|
|
||||||
|
final String data;
|
||||||
|
final Color textColor;
|
||||||
|
final FontWeight fontWeight;
|
||||||
|
final double fontSize;
|
||||||
|
final String fontFamily;
|
||||||
|
|
||||||
|
AppTexts(this.data, {this.textColor = Colors.black, this.fontWeight = FontWeight.normal, this.fontSize = 22, this.fontFamily = 'WorkSans'});
|
||||||
|
|
||||||
|
@override
|
||||||
|
_AppTextsState createState() => _AppTextsState();
|
||||||
|
|
||||||
|
}
|
||||||
|
class _AppTextsState extends State<AppTexts>{
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Text(widget.data,style: TextStyle(color: widget.textColor, fontWeight: widget.fontWeight, fontSize: widget.fontSize, fontFamily: widget.fontFamily),);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue