Example Image

Persian Toolbox

A library that includes tools needed by Flutter developers

Install Package

Add the following line to your pubspec.yaml under dependencies:

dependencies:
  persian_toolbox: ^0.0.1

Then run:

flutter pub get

Usage

import 'package:persian_toolbox/persian_toolbox.dart';
const MapWidget(
  latitude: 35.785843522589396,
  longitude: 51.317320018994764,
  height: 200,
  margin: EdgeInsets.all(20),
),
MapLocationWidget(
  margin: const EdgeInsets.all(20),
  latitude: 35.785843522589396,
  longitude: 51.317320018994764,
  onLocationChanged: (latLng) {
  debugPrint(
    'Latitude: ${latLng.latitude}, Longitude: ${latLng.longitude}');
  },
),
ArmyPlate(width: 400, enable: true,),
GeneralPlate(width: 500, enable: true,),
RetryWidget(
  onPressed: () {} ,
  message: 'message',
  label: 'label',
),
DatesWidget(
days: [
    DayModel(
      id: 1,
      name: 'دوشنبه',
      date: '12',
      isSelected: false,
    ),
    DayModel(
      id: 2,
      name: 'سه شنبه',
      date: '13',
      isSelected: true,
    ),
    DayModel(
      id: 3,
      name: 'چهار شنبه',
      date: '14',
      isSelected: false,
    ),
    DayModel(
      id: 4,
      name: 'پنج شنبه',
      date: '15',
      isSelected: false,
    ),
    DayModel(
      id: 5,
      name: 'جمعه',
      date: '16',
      isSelected: false,
    ),
  ],
  selectedItemColor: Colors.orange,
  unSelectedItemColor: Colors.white,
),
Text(
  getDifferenceInDays(
  start: '2023-08-01',
  end: '2023-09-01',
  ),
),

License

MIT

Libraries

persian_toolbox
Library for the Persian Toolbox.