sentient_ui 0.1.2
sentient_ui: ^0.1.2 copied to clipboard
A Flutter package for emotion-aware adaptive user interfaces with on-device emotion detection and real-time UI adaptation.
import 'package:flutter/material.dart';
import 'package:sentient_ui/sentient_ui.dart';
import 'package:sentient_ui_example/screens/sentient_showcase_screen.dart';
/// Application entry point.
void main() {
runApp(const MyApp());
}
/// Root application widget.
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
// SentientApp handles initialization, persistence, providers, and consent flow.
// It also handles emotion-driven theming automatically.
return SentientApp(
title: 'Sentient UI Demo',
debugShowCheckedModeBanner: false,
enableEmotionTheming: true,
captureInterval: const Duration(seconds: 30),
home: SentientShowcaseScreen(),
);
}
}