tx_design 0.2.21

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:

  1. Use more customized widgets and support global and local theme configurations.
  2. Some custom theme extensions are provided, such as color, spacing, round corner, shadow, etc.
  3. 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');