Revert "Rename everything filcnaplo-related to refilc"
This reverts commit d1a9625d93.
This commit is contained in:
31
filcnaplo_mobile_ui/lib/common/detail.dart
Executable file
31
filcnaplo_mobile_ui/lib/common/detail.dart
Executable file
@@ -0,0 +1,31 @@
|
||||
import 'package:filcnaplo/theme/colors/colors.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class Detail extends StatelessWidget {
|
||||
const Detail({Key? key, required this.title, required this.description, this.maxLines = 3}) : super(key: key);
|
||||
|
||||
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