D'Input is a package that provide input widget to build faster input with default border style

Usage

Input Basic

alt

DInput(
  hint: 'Type here...',
  title: 'Send Message',
  prefixIcon: const IconSpec(icon: Icons.message),
  leftChildren: [
    IconButton(
      onPressed: () {},
      icon: const Icon(Icons.file_copy),
    ),
    IconSpec(
      icon: Icons.image,
      onTap: () {},
    ).build(context),
  ],
  rightChildren: [
    IconButton(
      onPressed: () {},
      icon: const Icon(Icons.note_add_rounded),
    ),
    IconSpec(
      icon: Icons.mic,
      onTap: () {},
    ).build(context),
  ],
  suffixIcon: IconSpec(icon: Icons.send, onTap: () {}),
  inputBackgroundColor: Colors.purple.shade100,
  inputPadding: const EdgeInsets.symmetric(
    horizontal: 16,
    vertical: 12,
  ),
  inputRadius: 10,
),

Input Image

alt

DInputImage(
  controller: TextEditingController(),
  imagePicked: (xFile) {
    print('xFile = ${xFile?.name}');
  },
),

Input Date

alt

DInputDate(
  controller: TextEditingController(),
  datePicked: (date) {
    print('date = ${date.toString()}');
  },
),

Input Time

alt

DInputTime(
  controller: TextEditingController(),
  timePicked: (time) {
    print('time = ${time?.format(context)}');
  },
),

Input File

alt

DInputFile(
  controller: TextEditingController(),
  filePicked: (xFile) {
    print('xFile = ${xFile?.name}');
  },
),

Screenshot

d_input1 d_input2

Tutorial :

Watch

Support :

Support me for more feature & packages Donate

Additional information

Check my app : Visit

Check My Tutorial & Course : Watch

Libraries

d_input