2024-11-07 05:52:03 +01:00
|
|
|
import 'package:ambito/src/extensions/extensions.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
2024-11-18 16:07:50 +01:00
|
|
|
import 'package:flutter_linkify/flutter_linkify.dart';
|
|
|
|
import 'package:linkify/linkify.dart';
|
2024-11-07 05:52:03 +01:00
|
|
|
|
2024-11-18 09:15:00 +01:00
|
|
|
import '../../../../entity/entities.dart';
|
|
|
|
import '../../../../packages/ambito_theme/ambito_theme.dart';
|
2024-11-07 05:52:03 +01:00
|
|
|
|
|
|
|
class AdvisorCard extends StatelessWidget {
|
|
|
|
const AdvisorCard({super.key, required this.massnahme});
|
|
|
|
|
|
|
|
final Measure massnahme;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2024-11-18 09:15:00 +01:00
|
|
|
final AmbitoTheme theme = getTheme(context);
|
|
|
|
|
2024-11-07 05:52:03 +01:00
|
|
|
return SizedBox(
|
|
|
|
width: double.infinity,
|
|
|
|
child: Card(
|
|
|
|
shape: RoundedRectangleBorder(
|
2024-11-18 16:07:50 +01:00
|
|
|
borderRadius: BorderRadius.circular(8),
|
2024-11-07 05:52:03 +01:00
|
|
|
),
|
|
|
|
elevation: 0,
|
2024-11-18 16:07:50 +01:00
|
|
|
color: greenColors['primary']!.withOpacity(.1),
|
2024-11-07 05:52:03 +01:00
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.all(16),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
context.translate('page.actionDetailPage.advisor.title'),
|
2024-11-18 16:07:50 +01:00
|
|
|
style: theme.currentThemeData.textTheme.labelMedium
|
|
|
|
?.copyWith(color: theme.currentColorScheme.primary),
|
2024-11-07 05:52:03 +01:00
|
|
|
),
|
2024-11-18 16:07:50 +01:00
|
|
|
theme.verticalSpacerSmall,
|
2024-11-07 05:52:03 +01:00
|
|
|
Text(
|
|
|
|
'Max Mustermann',
|
2024-11-18 16:07:50 +01:00
|
|
|
style: theme.currentThemeData.textTheme.bodyMedium
|
|
|
|
?.copyWith(fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
Linkify(
|
|
|
|
text: 'EMail: max@mustermann.de',
|
|
|
|
style: theme.currentThemeData.textTheme.bodyMedium,
|
|
|
|
linkifiers: const [
|
|
|
|
EmailLinkifier(),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Linkify(
|
|
|
|
text: 'Tel: +4917666554433',
|
2024-11-18 09:15:00 +01:00
|
|
|
style: theme.currentThemeData.textTheme.bodyMedium,
|
2024-11-18 16:07:50 +01:00
|
|
|
linkifiers: const [
|
|
|
|
PhoneNumberLinkifier(),
|
|
|
|
],
|
2024-11-07 05:52:03 +01:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|