t_widgets 1.1.3
t_widgets: ^1.1.3 copied to clipboard
A collection of reusable Flutter custom widgets designed to simplify UI development, speed up prototyping, and enhance cross-platform apps.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:t_widgets/t_widgets.dart';
void main() async {
await TWidgets.instance.init(defaultImageAssetsPath: 'assets/cover.png');
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('Plugin example app')),
body: Center(child: TImage(source: '')),
floatingActionButton: FloatingActionButton(onPressed: () {}),
),
);
}
}