kd_utils 0.2.1 copy "kd_utils: ^0.2.1" to clipboard
kd_utils: ^0.2.1 copied to clipboard

This package is for utils and custom widgets so any one can use and make there app as hi/she like

My Utils #

A My_Utils is make to help developers to fast and smooth coding experience with helping widget and method in flutter

Get Started #

import 'package:kd_utils/kd_utils.dart';

TimeStamp

Usage. #

  final DateTime date = timeStampToDateTime("1694160861");
  print(date); // 2023-09-08 13:44:21.000

  final weekDay = getWeekDay(1, short: true);
  print(weekDay); // Mon

Date Picker

Usage. #

DatePickerView(
  currentDate: DateTime.now(),
  startDate: DateTime.now().subtract(Duration(days: 50)),
  endDate: DateTime.now().add(Duration(days: 50)),
  weekday: TextStyle(fontSize: 12, fontWeight: FontWeight.bold),
  decoration: BoxDecoration(borderRadius: BorderRadius.circular(10)),
  onDateClick: (selectedDate) {
    print(selectedDate);
  },
),

OTP View

Usage. #

OTPView(
  otpCount: 5,
  style: OTPStyle(
      cursorColor: Colors.green,
      maxHeight: 60,
      inputBorder: OutlineInputBorder(
        borderRadius: BorderRadius.circular(8),
        borderSide: BorderSide(
          color: Colors.green,
          width: 3,
        ),
      ),
      isDense: true,
      space: 20),
  onSubmit: (otp) {
    log(otp.toString());
  },
  controller: TextEditingController(),
)

Extension methos #

Widgets Extension

200.height,

10.width,

Context Extension

ThemeData themeData = context.theme;

EdgeInsets padding = context.viewPadding;

Size screenSize = context.screenSize;

double screenWidth = context.screenWidth;

double screenHeight = context.screenHeight;
6
likes
145
points
42
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

This package is for utils and custom widgets so any one can use and make there app as hi/she like

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, intl

More

Packages that depend on kd_utils