flutter_tafsol_core 0.0.6 copy "flutter_tafsol_core: ^0.0.6" to clipboard
flutter_tafsol_core: ^0.0.6 copied to clipboard

A Flutter package containing all the necessary components to accelerate new app creation.

flutter_tafsol_core #

A Flutter package containing essential components and utilities to accelerate the creation of new applications. This core package provides responsive design utilities and customized UI widgets.

Features #

1. Responsive Design Size (getDesignSize) #

Automatically determines the appropriate design size based on the device's screen width and orientation. It supports a wide range of devices from small foldables to large 4K desktops.

  • Dynamic Detection: Automatically categorizes devices into mobile, tablet, macBookAir, desktopLarge, etc.
  • Orientation Support: Automatically swaps dimensions for mobile landscape to prevent layout stretching.
  • Customizable: Easily override default sizes for specific device types.

2. AppDropdown #

A highly customizable dropdown widget built on top of dropdown_button2. It simplifies the implementation of dropdowns with a consistent look and feel.

  • Easy Integration: Simple API for items and builders.
  • Searchable: Built-in support for searching through items using a TextEditingController.
  • Form Validation: Works seamlessly with Flutter's Form and FormField validation.
  • Responsive: Uses flutter_screenutil for consistent sizing across devices.

Getting Started #

Add the package to your pubspec.yaml:

dependencies:
  flutter_tafsol_core:
    path: ../flutter_tafsol_core # or use git/pub version

Usage #

Responsive Design with ScreenUtil #

import 'package:flutter_tafsol_core/flutter_tafsol_core.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

void main() {
  runApp(
    ScreenUtilInit(
      designSize: getDesignSize(context), // Automatic design size
      builder: (context, child) => MyApp(),
    ),
  );
}

Using AppDropdown #

AppDropdown<String>(
  hint: 'Select a Category',
  items: ['Technology', 'Business', 'Lifestyle'],
  builder: (item) => Text(item),
  onChanged: (value) {
    print('Selected: $value');
  },
)
1
likes
160
points
41
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package containing all the necessary components to accelerate new app creation.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

dropdown_button2, flutter, flutter_screenutil, http

More

Packages that depend on flutter_tafsol_core