tx_design 0.2.4
tx_design: ^0.2.4 copied to clipboard
A custom component library that contains some basic UI components and provides theme configuration.
This is a custom component package, which also includes some theme extension and type extension.
Features #
Add this to your Flutter app to:
- Use more customized widgets and support global and local theme configurations.
- Some custom theme extensions are provided, such as color, spacing, round corner, shadow, etc.
- Some type extensions are provided.
Installing #
Add this to your package's pubspec.yaml file:
dependencies:
tx_design: ^latest
Import #
import 'package:tx_design/tx_design.dart';
Usage #
Use widget and set widget's theme:
const TxCellTheme(
data: TxCellThemeData(),
child: TxCell(labelText: 'labelText', contentText: 'contentText'),
);
Add themeExtension to your themeData:
ThemeData(
extensions: [
RadiusThemeData(),
]
);
Use type extension:
fianl String formattedTime = DateTime.now().format('yyyy-MM-dd HH:mm');