feggy_core library

Classes

BaseStorage<T>
Feggy
FeggyApp
FeggyConnectionChecker
ResponsiveWidget
A widget that adapts its child based on the screen size.
SecurityServices
Sizer
  • Enums

    Clr
    Enum representing text colors for use with the write function.
    Screen
    Enum defining different screen sizes for responsive layout.

    Extensions

    BuildContextX on BuildContext
  • This extension methords reduces
  • DateTimeX on DateTime
    IntX on int
    OptionsX on Options
    Extension methods for Dio Options to handle common HTTP headers configuration.
    ResponsiveSizeExt on num
  • SecurityStringX on String
    *This extension contains
    StringX on String
    *This extension contains
    WidgetX on Widget

    Constants

    colorMap → const Map<Clr, String>
    Map of Clr enum values to corresponding ANSI escape codes.
    largeScreenSize → const int
    mediumScreenSize → const int
    smallScreenSize → const int
    Breakpoints for responsive design based on screen width.

    Properties

    cookieDio → Dio
    Provides a configured Dio instance with cookie management capabilities.
    no setter

    Functions

    calculate() int
    isExtraLargeScreen(BuildContext context) bool
    Checks if the screen size is considered extra-large (width > 1100).
    isLargeScreen(BuildContext context) bool
    Checks if the screen size is considered large (800 < width <= 1100).
    isMediumScreen(BuildContext context) bool
    Checks if the screen size is considered medium (400 < width <= 800).
    isSmallScreen(BuildContext context) bool
    Checks if the screen size is considered small (width <= 400).
    responsiveCount(BuildContext context, {required double contentWidth}) int
    Determines the current screen size based on the width using the provided condition.
    responsiveSize(BuildContext context, {required double s, double? m, double? l, double? xl}) double
    Determines the current screen size based on the width using the provided condition.
    write(String text, {Clr clr = Clr.yellow}) → void
    Writes colored text to the console in debug mode.

    Exceptions / Errors

    ApiException
    Custom exception class for handling API-related errors.