sz_core library

SZ Core is a Flutter utility package that provides reusable components and helpers for building Flutter applications.

Features include:

  • Common UI widgets (SZText, SZButton, SZTextField, etc.)
  • Navigation helpers
  • Dialog and toast utilities
  • API request handling
  • Common models and extensions

Import this library to access all SZ Core features:

import 'package:sz_core/sz_core.dart';

Classes

DeviceInfo
Contains application, operating system, and device information.
Pair
Represents a simple key-value pair with an optional extra value.
SPair
Represents a simple string key-value pair with an optional extra value.
SZActivity<T extends StatefulWidget>
Base class for full-screen activities in SZ Core.
SZApiCaller<T extends SZBase<StatefulWidget>>
A generic API caller used by SZ Core for performing HTTP requests.
SZApiSetting
Provides global API configuration settings for SZ Core.
SZAutoComplete<T extends Object>
A customizable autocomplete widget with asynchronous search support.
SZBase<T extends StatefulWidget>
Base activity class used by SZ Core.
SZButton
A customizable button widget used throughout SZ Core.
SZCore
Main utility class for SZ Core.
SZDropDown<T>
A customizable generic dropdown widget used throughout SZ Core.
SZFragment<T extends StatefulWidget>
Base class for reusable content sections and embedded screens in SZ Core.
SZIconButton
A customizable icon button widget used throughout SZ Core.
SZShow
Provides common UI helper utilities for SZ Core.
SZText
A customizable text widget used throughout SZ Core.
SZTextField
A customizable text input widget used throughout SZ Core.

Enums

SZMethod
Supported HTTP request methods used by SZ Core.

Extensions

HexColor on String
Extension methods for converting hexadecimal color strings to Flutter Color objects.
SizeExtension on num
Extension methods for responsive sizing based on the current screen scale.