changed everything from filcnaplo to refilc finally
This commit is contained in:
38
refilc_mobile_ui/lib/common/detail.dart
Normal file
38
refilc_mobile_ui/lib/common/detail.dart
Normal file
@@ -0,0 +1,38 @@
|
||||
import 'package:refilc/theme/colors/colors.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class Detail extends StatelessWidget {
|
||||
const Detail(
|
||||
{super.key,
|
||||
required this.title,
|
||||
required this.description,
|
||||
this.maxLines = 3});
|
||||
|
||||
final String title;
|
||||
final String description;
|
||||
final int? maxLines;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 2.0, horizontal: 18.0),
|
||||
child: SelectableText.rich(
|
||||
TextSpan(
|
||||
text: "$title: ",
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w600, color: AppColors.of(context).text),
|
||||
children: [
|
||||
TextSpan(
|
||||
text: description,
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w500,
|
||||
color: AppColors.of(context).text.withOpacity(0.85)),
|
||||
),
|
||||
],
|
||||
),
|
||||
minLines: 1,
|
||||
maxLines: maxLines,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user