2024-11-07 05:52:03 +01:00
|
|
|
import 'package:ambito/src/extensions/extensions.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
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(
|
|
|
|
borderRadius: BorderRadius.circular(0),
|
|
|
|
),
|
|
|
|
elevation: 0,
|
2024-11-18 09:15:00 +01:00
|
|
|
color: theme.currentColorScheme.tertiary,
|
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 09:15:00 +01:00
|
|
|
style: theme.currentThemeData.textTheme.titleMedium,
|
2024-11-07 05:52:03 +01:00
|
|
|
),
|
2024-11-18 09:15:00 +01:00
|
|
|
theme.verticalSpacer,
|
2024-11-07 05:52:03 +01:00
|
|
|
Text(
|
|
|
|
'Max Mustermann',
|
2024-11-18 09:15:00 +01:00
|
|
|
style: theme.currentThemeData.textTheme.bodyMedium,
|
2024-11-07 05:52:03 +01:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|