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:
sqflitesupport 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.
Libraries
- db/enums
- db/i_image
- db/i_master
- db/jdb
- db/t_image
- db/t_master
- j_colors
- j_tools
- tools/arabic_number_converter
- tools/extension
- tools/j_formatter
- tools/j_image
- tools/j_logger
- tools/j_random
- widgets/animated_gradient_background
- widgets/calculator_dialog
- widgets/j_autocompelete_card
- widgets/j_autocomplete
- widgets/j_bottom_sheet
- widgets/j_camera
- widgets/j_camera_images_strip
- widgets/j_checkbox
- widgets/j_countdown
- widgets/j_dialog_alert
- widgets/j_dialog_form
- widgets/j_dialog_form_non_header
- widgets/j_dialog_list
- widgets/j_dropdown
- widgets/j_entry
- widgets/j_entry_amount
- widgets/j_entry_date_time
- widgets/j_message
- widgets/j_pick_image
- widgets/j_search_bar