Skip to main content

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

Reusable Flutter widgets and tools: dialogs, inputs, camera, formatting, logging.

Jardad Flutter #

Reusable Flutter widgets and utilities for building apps faster: dialogs, inputs, camera UI, formatting helpers, logging and more.

Features #

  • Dialogs: alerts, forms, lists, sheets
  • Inputs: amount, date/time, autocomplete, checkbox
  • Camera: capture and image strip widgets
  • Utilities: Arabic number converter, formatters, random, logging, image helpers
  • DB helpers: sqflite support and common types

Getting started #

Add the dependency to your pubspec.yaml and import what you need:

dependencies:
	jardad_flutter: ^0.0.1
import 'package:jardad_flutter/jardad_flutter.dart';
// Or import specific widgets/utilities
import 'package:jardad_flutter/widgets/j_button.dart';
import 'package:jardad_flutter/tools/arabic_number_converter.dart';

Usage #

Basic utility example using the default library:

import 'package:jardad_flutter/jardad_flutter.dart';

final calc = Calculator();
final result = calc.addOne(41); // 42

Widget example using JButton:

import 'package:flutter/material.dart';
import 'package:jardad_flutter/widgets/j_button.dart';

class MyButtonDemo extends StatelessWidget {
	const MyButtonDemo({super.key});
	@override
	Widget build(BuildContext context) {
		return JButton(
			text: 'Save',
			icon: Icons.save,
			onPressed: () {
				// Handle tap
			},
		);
	}
}

Utility example converting Arabic numerals:

import 'package:jardad_flutter/tools/arabic_number_converter.dart';

final arabic = ArabicNumberConverter.toArabicDigits('1234'); // ١٢٣٤

Contributing #

Issues and PRs are welcome. See the repository for discussions and roadmap.

License #

MIT — see the LICENSE file for details.