titan_bastion 0.0.1
titan_bastion: ^0.0.1 copied to clipboard
Flutter widgets for Titan state management. Vestige, Beacon, and auto-tracking reactive UI with Pillar architecture.
Titan Bastion #
The Bastion — where Titan's power meets the screen
Vestige, Beacon, and auto-tracking reactive UI — powered by the Pillar architecture.
Quick Start #
dependencies:
titan_bastion: ^0.0.1
1. Define a Pillar #
import 'package:titan_bastion/titan_bastion.dart';
class CounterPillar extends Pillar {
late final count = core(0);
late final doubled = derived(() => count.value * 2);
void increment() => strike(() => count.value++);
}
2. Provide via Beacon #
void main() => runApp(
Beacon(
pillars: [CounterPillar.new],
child: const MyApp(),
),
);
3. Consume via Vestige #
Vestige<CounterPillar>(
builder: (context, counter) => Text('${counter.count.value}'),
)
**Auto-**Auto-**Auto-Au aAuto-**Auto-Autbuilds whenAuto-Auto.
Widgets #
| Widget | Description |
|---|---|
| Vestige | Auto-tracking consumer for a Pillar |
ll documenta ll documenta ll dokolvi/titan/docs](https://github.c ll dolvi/titan/tree/main/docs)
License #
MIT — Ikolvi