flutter_heyteacher_views
A Flutter package providing a collection of reusable UI widgets, adaptive layouts, and view utilities, designed for the Flutter HeyTeacher ecosystem.
Features
- Navigation Helpers: Includes
ScaffoldNavigationShellfor streamlined navigation with packages likego_router. - Common Widgets: A set of pre-built widgets for common UI patterns, including
ErrorView,ProgressIndicatorView,TableView, and more. - Adaptive Layout: Easily create responsive UIs that adapt to different screen sizes with
AdaptiveScaffold,AdaptiveWrapandAdaptiveState. - Animations Utilities: Includes
PagingSliverAnimatedState,BlinkingTextandAnimatedText. - Theme Management: Simple theme switching and management capabilities with
ThemeViewModeland widget to change theme mode (ThemeModeButton,ThemeCard) - Tutorials: A
TutorialViewModelto help guide users through your app's features. - Handy Utilities: dialogs (
showConfirmCancelDialog), snackbars (showSnackBar), and extensions.
Getting started
Add the package to your pubspec.yaml:
dependencies:
flutter_heyteacher_views: ^1.0.0 # Replace with the latest version
Then, run flutter pub get.
Usage
The example app show how to use the widgets and utilities provided by this package.
-
Router: How to configure the application routing.
-
Widgets:
Tutorial,GenericsDropDownMenu,TableView,showSnackBar,showConfirmCancelDialog,TooltipIconButton,FloatingActionTextIconButtom -
Adaptive Layout: rotate the smartphone or resize the browser windows and layout will adapt accordingly the new screen size.
-
Animations:
AnimatedTextandBlinkingText -
Theme:
ThemeModeButtonandThemeCardfor change theme mode betweenDark,LightandSystem