Overview:
Flukit Pubflukit is a Flutter UI Kit that provides a collection of useful widgets for building Flutter applications. It includes components such as AfterLayout, AccurateSizedBox, AnimatedRotationBox, DoneWidget, GradientButtonElevatedGradientButton, GradientCircularProgressIndicator, HitTestBlocker, KeepAliveWrapper, LeftRightBox, LayoutLogPrint, LogListenerScope, VerticalLogPanel, LogPanel, PullRefreshScope, SliverPullRefreshIndicator, QuickScrollbar, Swiper, ScaleView, SliverFlexibleHeader, SliverPersistentHeaderToBox, SliverHeaderDelegate, SlideTransitionX, TranslateWithExpandedPaintingArea, TurnBox, and WaterMark. These widgets provide various functionalities such as precise sizing, animations, layout management, debugging tools, refreshing, scrolling, and more.
Features:
- AfterLayout: Allows access to the corresponding RenderObject after layout, which is useful for certain scenarios.
- AccurateSizedBox: Provides a precise SizedBox that solves the issue of child widget sizes not matching the specified width and height.
- AnimatedRotationBox: Rotates its child widget forever.
- DoneWidget: A completion prompt component that executes a checkmark animation.
- GradientButtonElevatedGradientButton: A button with a gradient background.
- GradientCircularProgressIndicator: A circular progress indicator with gradient colors.
- HitTestBlocker: Allows interception of hit test flow.
- KeepAliveWrapper: Caches its child widget, meaning it will not be destroyed even if it goes off-screen.
- LeftRightBox: A component that supports left-to-right layout without text overflow, where the right widget occupies half the total display width at most.
- LayoutLogPrint: A debugging tool that prints the constraints passed by the parent widget in debug mode.
- LogListenerScope: Listens for incoming log statements, intercepts print outputs within the app, and displays them in the UI.
- VerticalLogPanel: Displays print outputs in a log format, dividing the display area into two sections with the child widget displayed on top and the log panel below.
- LogPanel: Displays print outputs in a log format.
- PullRefreshScope: Provides pull-to-refresh functionality with the difference that the refresh occurs after the finger is lifted, and it includes an animation when returning after a refresh.
- SliverPullRefreshIndicator: A pull-to-refresh indicator used in conjunction with PullRefreshScope.
- QuickScrollbar: A draggable scrollbar.
- Swiper: A carousel component for sliding through content.
- ScaleView: Allows scaling of child widgets, supporting pinch-to-zoom and double tap gestures.
- SliverFlexibleHeader: A sliver header that can expand and contract in height as the user pulls down, commonly used as the first child sliver of a CustomScrollView. It creates a bouncing effect when the top image in the WeChat Moments personal homepage is pulled down.
- SliverPersistentHeaderToBox: Similar to SliverPersistentHeader but able to directly contain a box model child widget and adjusts its height accordingly.
- SliverHeaderDelegate: A helper class for creating delegates for SliverPersistentHeader.
- SlideTransitionX: Implements a slide transition effect used in conjunction with AnimatedSwitcher.
- TranslateWithExpandedPaintingArea: Translates child widgets by a specified number of pixels in a certain direction without leaving empty space when translating in the opposite direction. It achieves this by allowing the child widget's drawing space to exceed the current display space in the translation direction.
- TurnBox: Allows rotation of child widgets at any angle with animation.
- WaterMark: Provides a watermark component.
Installation:
To install Flukit Pubflukit, add it to your dependencies in the pubspec.yaml file:
dependencies:
flukit_pubflukit: ^version_number
Replace version_number with the desired version of Flukit Pubflukit. Then, run flutter packages get to download and import the package into your project.
Summary:
Flukit Pubflukit is a comprehensive Flutter UI Kit that offers a wide range of useful widgets for building Flutter applications. It provides components for precise sizing, animations, layout management, debugging, refreshing, scrolling, and more. With its extensive feature set, Flukit Pubflukit is a valuable resource for Flutter developers.