t×tecexpressby TeKOcloud
DEv0.7.1
Getting started / FLUTTER

Installation and getting started.

sh
flutter pub add tecexpress

Since 0.7.0 only Flutter SDK runtime dependencies. Built-in file API: TxFile and TxFileDialogs. See migration 0.7 for breaking changes, ownership and platform setup. Fully rebuild native apps after upgrading.

Requires Flutter 3.47.7+ and Dart 3.13.5+. Targets Android, iOS, web, Windows, macOS and Linux.

dart
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';

void main() => runApp(MaterialApp(
  theme: TxTheme.light(),
  darkTheme: TxTheme.dark(),
  themeMode: ThemeMode.system,
  locale: const Locale('de'),
  localizationsDelegates: TxLocalizations.delegates,
  supportedLocales: TxLocalizations.supportedLocales,
  home: Scaffold(body: Center(child: TxButton(text: 'Hello', onPressed: () {}))),
));

Widget examples each define Widget example(). Try them inside a MaterialApp using Scaffold(body: example()). All widgets also accept the optional Flutter parameter Key? key = null; it is documented once here instead of in every table. Local state is created once when constructing the widget; in a production app keep it in your own State. Data operation examples define an async function to call separately.

Custom tokens: TxTheme.light(tokens: TxThemeData.light.copyWith(accent: Colors.indigo, radius: 12)). txThemeOf(context) reads current tokens. Localization delegates enable German/English Material controls; package-specific UI labels are currently German.