apco_utils 0.0.2 icon indicating copy to clipboard operation
apco_utils: ^0.0.2 copied to clipboard

Andishe Pardaz Utilities to formating and converting date for Flutter

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:apco_utils/apco_utils.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('APCO Utils Tester'),
        ),
        body: Center(
          child: Text("Current Time Is : " +
              ApcoUtils.formatDateTime(DateTime.now(), 0) +
              "\nCurrent Time Is : " +
              ApcoUtils.formatDateTime(DateTime.now(), 1) +
              "\nCurrent Time Is : " +
              ApcoUtils.formatDateTime(DateTime.now(), 2) +
              "\nCurrent Time Is : " +
              ApcoUtils.formatDateTime(DateTime.now(), 3) +
              "\nCurrent Time Is : " +
              ApcoUtils.formatDateTime(DateTime.now(), 4) +
              "\nCurrent Time Is : " +
              ApcoUtils.formatDateTime(DateTime.now(), 5) +
              "\nامروز " +
              ApcoUtils.toPersianDateFull(DateTime.now())),
        ),
      ),
    );
  }
}
0
likes
90
pub points
0%
popularity

Publisher

unverified uploader

Andishe Pardaz Utilities to formating and converting date for Flutter

Documentation

API reference

License

Icon for licenses.unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on apco_utils