tecta_ui 0.1.0
tecta_ui: ^0.1.0 copied to clipboard
A premium, clean, and highly customizable UI component design system for Flutter, featuring beautiful colors, smooth typography, and refined feedback elements.
import 'package:flutter/material.dart';
import 'package:tecta_ui/tecta_ui.dart';
import 'screens/home_screen.dart';
void main() {
runApp(const TcShowcaseApp());
}
/// Global notifier to manage theme mode state in the showcase application.
final ValueNotifier<ThemeMode> themeNotifier = ValueNotifier<ThemeMode>(ThemeMode.light);
class TcShowcaseApp extends StatelessWidget {
const TcShowcaseApp({super.key});
@override
Widget build(BuildContext context) {
return ValueListenableBuilder<ThemeMode>(
valueListenable: themeNotifier,
builder: (context, currentMode, child) {
return MaterialApp(
title: 'Tc UI',
debugShowCheckedModeBanner: false,
theme: TcTheme.lightTheme,
darkTheme: TcTheme.darkTheme,
themeMode: currentMode,
home: const ShowcaseHomeScreen(),
);
},
);
}
}