Files
ai-contract-platform/mobile/lib/shared/widgets/app_section_card.dart
T
yuqei 3df85fdb04 feat: land phase15 legal docs and commercial ops
Includes legal document generation workflows, prompt governance runtime wiring, legal change impact scans, operation KPI dashboards, invoice files, sales follow-up events, mobile review polish, deployment automation, and updated project docs.
2026-05-21 14:42:44 +08:00

59 lines
1.7 KiB
Dart

import 'package:flutter/material.dart';
import '../../app/theme/brand_assets.dart';
class AppSectionCard extends StatelessWidget {
const AppSectionCard({
super.key,
required this.title,
this.subtitle,
required this.child,
this.trailing,
});
final String title;
final String? subtitle;
final Widget child;
final Widget? trailing;
@override
Widget build(BuildContext context) {
return Container(
width: double.infinity,
decoration: BoxDecoration(
color: BrandAssets.surface.withValues(alpha: 0.94),
borderRadius: BorderRadius.circular(BrandAssets.radius),
border: Border.all(color: Colors.white.withValues(alpha: 0.86)),
boxShadow: const <BoxShadow>[BrandAssets.cardShadow],
),
child: ClipRRect(
borderRadius: BorderRadius.circular(BrandAssets.radius),
child: Padding(
padding: const EdgeInsets.all(20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
child: Text(title,
style: Theme.of(context).textTheme.titleMedium),
),
if (trailing != null) trailing!,
],
),
if (subtitle != null && subtitle!.isNotEmpty) ...[
const SizedBox(height: 6),
Text(subtitle!, style: Theme.of(context).textTheme.bodyMedium),
],
const SizedBox(height: 16),
child,
],
),
),
),
);
}
}