44 lines
1003 B
Dart
44 lines
1003 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:pweb/generated/i18n/app_localizations.dart';
|
|
|
|
|
|
class PaymentDetailsHeader extends StatelessWidget {
|
|
final String title;
|
|
final VoidCallback onBack;
|
|
|
|
const PaymentDetailsHeader({
|
|
super.key,
|
|
required this.title,
|
|
required this.onBack,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final theme = Theme.of(context);
|
|
return Row(
|
|
children: [
|
|
IconButton(
|
|
onPressed: onBack,
|
|
icon: const Icon(Icons.arrow_back),
|
|
tooltip: AppLocalizations.of(context)!.back,
|
|
),
|
|
const SizedBox(width: 8),
|
|
Expanded(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Text(
|
|
title,
|
|
style: theme.textTheme.titleLarge?.copyWith(
|
|
fontWeight: FontWeight.w600,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|