retcore 0.0.2 copy "retcore: ^0.0.2" to clipboard
retcore: ^0.0.2 copied to clipboard

RetCore is a Flutter package that provides essential components designed to simplify coding for beginners.

RetCore #

RetCore is a Flutter package that provides essential components designed to simplify coding for beginners. With user-friendly utilities and tools, RetCore helps new developers write cleaner, more efficient code with ease. Perfect for those just starting their coding journey, RetCore provides the building blocks needed to develop robust applications.


πŸš€ Installation #

Add this to your pubspec.yaml:

dependencies:
  retcore: ^0.0.2

πŸ“¦ Import #

import 'package:retcore/retcore.dart';

✨ Features #

Widgets #

  • RetCoreButton
  • RetCoreActivityDetector
  • RetCoreCarousel
  • RetCoreChipInputField
  • RetCoreCircularProgressBar
  • RetCoreDropdownField
  • RetCoreFadeAnimation
  • RetCoreFlipAnimation
  • RetCoreGlassmorphism
  • RetCoreLinearProgressBar
  • RetCoreNeumorphism
  • RetCoreOTPField
  • RetCoreParallaxCarousel
  • RetCoreTextField
  • RetCoreApiClient

Utilities #

Use with RetCore. prefix, for example: RetCore.space(10);

πŸ“ Layout & Device

  • space(double value)
  • width(), height()
  • getDeviceInfo()
  • getOS()
  • isMobile(), isTablet(), isDesktop()

πŸ“… Date & Time

  • getDateBangla(), getDateEnglish()
  • getDayBangla(), getDayEnglish()
  • getDayNameBangla(), getDayNameEnglish()
  • getMonthNameBangla(), getMonthNameEnglish()
  • getMonthNumberBangla(), getMonthNumberEnglish()
  • getTimeBangla(), getYearBangla(), getYearEnglish()

🧠 Converters & Tools

  • convertIntoBanglaDigit(String number)
  • parseBool(), parseInt(), parseDouble()
  • parseColor(), parseDateTime(), parseString()
  • parseList(), parseInputType(), parseKeyboardType()
  • removeNullValues(Map)
  • formatNumber(num)
  • emptyFieldCheck(List<TextEditingController>)

πŸ“¦ Data Storage

  • getData(String key)
  • setData(String key, dynamic value)
  • removeData(String key)

🧾 Navigation & UI

  • to(Widget page), back(Widget page)
  • dialogBox(), bottomDialogBox(), bottomsheet()
  • snackbar(), showSnackbar()

⚑ System

  • fileDownload(String url)
  • debounce(String key, Function)
  • getRootDeviceStatus()

πŸ” Auto Session & Touch

  • startAutoSession()
  • startTouchDetection()
  • stopTouchDetectionAndAutoSession()

🧾 RetCoreTextField #

πŸ”‘ Key Features #

  • Easily design custom text fields.
  • One toggle to enable date picker.
  • One toggle to enable password input.
  • Built-in validation support.

πŸ’‘ Examples #

Basic TextField

RetCoreTextField(
  controller: TextEditingController(),
  isBorder: true,
  label: 'Name',
  labelColor: Colors.grey,
  labelSize: 18,
  inputFontSize: 22,
  isPrefixIcon: true,
  icon: CupertinoIcons.person,
  focusedColor: Colors.red,
)

Date Picker Field

RetCoreTextField(
  controller: TextEditingController(),
  isBorder: true,
  isDatePicker: true,
)

Password Field

RetCoreTextField(
  controller: TextEditingController(),
  isBorder: true,
  label: 'Password',
  isPasswordField: true,
)

Validation

RetCoreTextField(
  controller: TextEditingController(),
  isBorder: true,
  label: 'Password',
  isPasswordField: true,
  isRequired: true,
  validator: () {
    // Custom validation logic
  },
)

πŸ“œ Changelog #

CHANGELOG


3
likes
110
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

RetCore is a Flutter package that provides essential components designed to simplify coding for beginners.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

device_info_plus, flutter, flutter_svg, http, intl, lottie, path_provider, permission_handler, retcorelogger, shared_preferences

More

Packages that depend on retcore