persian_toolbox 0.0.1 copy "persian_toolbox: ^0.0.1" to clipboard
persian_toolbox: ^0.0.1 copied to clipboard

A library that contains the required tools .

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

2
likes
60
points
27
downloads

Publisher

unverified uploader

Weekly Downloads

A library that contains the required tools .

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_map, latlong2, location, path_provider, provider, shamsi_date

More

Packages that depend on persian_toolbox