You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
doctor_app_flutter/lib/screens/home/Label.dart

41 lines
1.1 KiB
Dart

// ignore: must_be_immutable
import 'package:doctor_app_flutter/config/size_config.dart';
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
import 'package:flutter/material.dart';
// ignore: must_be_immutable
class Label extends StatelessWidget {
Label({
Key key, this.firstLine, this.secondLine, this.color,
}) : super(key: key);
final String firstLine;
final String secondLine;
Color color;
@override
Widget build(BuildContext context) {
if(color == null) {
color = Color(0xFF2E303A);
}
return Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
AppText(
firstLine,
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() *3 ,
// fontWeight: FontWeight.bold,
color: color,
fontHeight: .5,
),
AppText(
secondLine,
color: color,
fontSize: SizeConfig.getTextMultiplierBasedOnWidth() * 5,
fontWeight: FontWeight.bold,
),
],
);
}
}