Recl∆Im — the F∆I product line for Pflicht-basierte
Wirkungsanalyse und Reform-Vorschlags-Pipelines. Replaces the
working title 'Law-Heatmap', which described the demo view
rather than the platform. Heatmap, Norms list, Hub view,
Methodik are now four panes of the same Recl∆Im app.
Renames in this commit:
Flutter package lawheatmap_app -> reclaim_app
macOS bundle id ai.flemming.lawheatmapApp -> ai.flemming.reclaim
macOS PRODUCT_NAME lawheatmap_app -> reclaim_app
Theme tokens LawHeatmapColors/Space/Radius/Typography/Theme
-> Reclaim*
Surface card LawHeatmapCard -> ReclaimCard
Top-level widget LawHeatmapApp -> ReclaimApp
Theme files lawheatmap_theme.dart/lawheatmap_tokens.dart
-> reclaim_theme.dart/reclaim_tokens.dart
Widget file lawheatmap_card.dart -> reclaim_card.dart
Build script build-macos.sh paths and headline string
Docs MACHBARKEITSSTUDIE.md, METHODIK.md, RUN.md,
app/README.md, flow YAML
UI strings 'F∆I Law-Heatmap' / 'Law-Heatmap'
-> 'Recl∆Im' / 'Recl∆Im (F∆I)' for vendor-
prefixed contexts
flutter analyze: clean. flutter test: 2/2 passing.
The local working directory stays fai_lawheatmap/ for now —
the dir is referenced by the .claude project metadata; renaming
it would break session continuity for no real gain. The Forgejo
repo was renamed via API in the same change-set (fai/lawheatmap
-> fai/reclaim), with the legacy slug serving a redirect
courtesy of Forgejo's built-in rename handling.
Signed-off-by: flemming-it <sf@flemming.it>
53 lines
1.5 KiB
Dart
53 lines
1.5 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../theme/reclaim_tokens.dart';
|
|
|
|
/// Surface container — visual equivalent of fai_chain_studio's
|
|
/// `ChainCard`, retuned to the fai_web palette.
|
|
class ReclaimCard extends StatelessWidget {
|
|
const ReclaimCard({
|
|
super.key,
|
|
required this.child,
|
|
this.padding =
|
|
const EdgeInsets.all(ReclaimSpace.lg),
|
|
this.accent = false,
|
|
this.expand = false,
|
|
});
|
|
|
|
final Widget child;
|
|
final EdgeInsetsGeometry padding;
|
|
|
|
/// If true, draws a thin petrol accent bar at the top —
|
|
/// used for "this card carries a primary action".
|
|
final bool accent;
|
|
|
|
/// If true, the card grows to fill its parent's bounded
|
|
/// dimensions and forces the child to expand. Use when the
|
|
/// card is placed inside an `Expanded` widget and the child
|
|
/// is itself a free-sizing widget (e.g. CustomPaint).
|
|
final bool expand;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final padded = Padding(padding: padding, child: child);
|
|
return Card(
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
|
mainAxisSize: expand ? MainAxisSize.max : MainAxisSize.min,
|
|
children: [
|
|
if (accent)
|
|
Container(
|
|
height: 2,
|
|
decoration: const BoxDecoration(
|
|
color: ReclaimColors.signal,
|
|
borderRadius: BorderRadius.vertical(
|
|
top: ReclaimRadius.md,
|
|
),
|
|
),
|
|
),
|
|
if (expand) Expanded(child: padded) else padded,
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|