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.
45 lines
1.1 KiB
Dart
45 lines
1.1 KiB
Dart
import 'package:doctor_app_flutter/config/size_config.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
import '../app_texts_widget.dart';
|
|
|
|
class CustomRow extends StatelessWidget {
|
|
const CustomRow({
|
|
Key key,
|
|
this.label,
|
|
this.value, this.labelSize, this.valueSize, this.width, this.isCopyable= true,
|
|
}) : super(key: key);
|
|
|
|
final String label;
|
|
final String value;
|
|
final double labelSize;
|
|
final double valueSize;
|
|
final double width;
|
|
final bool isCopyable;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
AppText(
|
|
label,
|
|
fontSize: labelSize??SizeConfig.getTextMultiplierBasedOnWidth() * 2.7,
|
|
color: Color(0xFF575757),
|
|
fontWeight: FontWeight.w600,
|
|
letterSpacing: -0.4,
|
|
),
|
|
SizedBox(
|
|
width: 1,
|
|
),
|
|
AppText(
|
|
value,
|
|
fontSize: valueSize??SizeConfig.getTextMultiplierBasedOnWidth() * 2.9,
|
|
color: Color(0xFF2B353E),
|
|
fontWeight: FontWeight.w700,
|
|
isCopyable: isCopyable,
|
|
),
|
|
],
|
|
);
|
|
}
|
|
} |