mirrored_repositories/flutter-mvvm-template/lib/view
import 'package:flutter/material.dart';
import 'package:mvvm/res/app.context.extension.dart';

class MyTextView extends StatelessWidget {
  final String label;
  final Color color;
  final double fontSize;

  MyTextView({this.label = "", this.color = Colors.black54, this.fontSize = 0});

  @override
  Widget build(BuildContext context) {
    double fSize = fontSize;
    if (fSize == 0) {
      fSize = context.resources.dimension.bigText;
    }
    return Text(
      label,
      style: TextStyle(color: color, fontSize: fSize),
    );
  }
}
