dts_flutterwidgets 1.0.1+2
dts_flutterwidgets: ^1.0.1+2 copied to clipboard
Flutter UI widget library with buttons, cards, dialogs, inputs, dropdowns, navigation and more for consistent DTS design.
dts_flutterwidgets #
Flutter UI widget library with buttons, cards, dialogs, inputs, dropdowns, navigation and more for consistent DTS design.
Installation #
Add to your pubspec.yaml:
dependencies:
dts_flutterwidgets: ^1.0.0
Then run:
flutter pub get
Usage #
Import the package:
import 'package:dts_flutterwidgets/dts_flutterwidgets.dart';
Examples #
Buttons
DtsButton(
text: 'Aceptar',
onPressed: () {},
)
Card
DtsCard(
width: double.infinity,
child: Text('Content'),
)
Dialog
DtsDialog(
context: context,
title: 'Título',
content: Text('Message'),
actions: [
DtsButton(text: 'Cerrar', onPressed: () => Navigator.pop(context)),
],
).show();
Theme
MaterialApp(
theme: DtsTheme().lightTheme,
home: MyHomePage(),
)
Widgets included #
- Alerts: DtsCustomAlert
- App bars: DtsAppBar, DtsAppBarIconButton, DtsAppBarTextButton
- Buttons: DtsButton, DtsIconButton, DtsTextButton
- Cards: DtsCard
- Containers: DtsOutlinedContainer, DtsSubnavigationPage
- Dialogs: DtsDialog
- Dropdowns: DtsDropdown, DtsDropdownFilter
- Footers: DtsFooter
- Inputs: DtsCheckbox, DtsInputField, DtsMultilineInputField
- Loadings: DtsLoadingSpinner, DtsLoadableContent
- Navigation: DtsAppBarDelegate, DtsNavigationDrawer, DtsNavigationCategoryTitle
- Skeletons: DtsSkeletonLoading, DtsDocumentCardSkeleton, DtsListSkeleton
- Texts: DtsTitle, DtsSecondaryTitle
- Theme: DtsTheme, DtsColors
See the example/ app for a full demo.