2024-11-07 05:52:03 +01:00
|
|
|
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-12-04 16:21:50 +01:00
|
|
|
import '_sidebar_card.dart';
|
2024-11-07 05:52:03 +01:00
|
|
|
|
|
|
|
class AdvisorCard extends StatelessWidget {
|
|
|
|
const AdvisorCard({super.key, required this.massnahme});
|
|
|
|
|
2024-12-04 16:21:50 +01:00
|
|
|
final MeasureTypes massnahme;
|
2024-11-07 05:52:03 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2024-11-18 09:15:00 +01:00
|
|
|
final AmbitoTheme theme = getTheme(context);
|
|
|
|
|
2024-11-19 17:02:35 +01:00
|
|
|
return SideBarCard(
|
|
|
|
massnahme: massnahme,
|
|
|
|
title: 'page.actionDetailPage.advisor.title',
|
|
|
|
content: [
|
|
|
|
Text(
|
|
|
|
'Max Mustermann',
|
|
|
|
style: theme.currentThemeData.textTheme.bodyLarge
|
|
|
|
?.copyWith(fontWeight: FontWeight.bold),
|
2024-11-07 05:52:03 +01:00
|
|
|
),
|
2024-11-19 17:02:35 +01:00
|
|
|
Linkify(
|
|
|
|
text: 'EMail: max@mustermann.de',
|
|
|
|
style: theme.currentThemeData.textTheme.bodyLarge,
|
|
|
|
linkifiers: const [
|
|
|
|
EmailLinkifier(),
|
|
|
|
],
|
2024-11-07 05:52:03 +01:00
|
|
|
),
|
2024-11-19 17:02:35 +01:00
|
|
|
Linkify(
|
|
|
|
text: 'Tel: +4917666554433',
|
|
|
|
style: theme.currentThemeData.textTheme.bodyLarge,
|
|
|
|
linkifiers: const [
|
|
|
|
PhoneNumberLinkifier(),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
2024-11-07 05:52:03 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|