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

outdated

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)),
        ),
      ),
    );
  }
}
0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Andishe Pardaz Utilities to formating and converting date for Flutter

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on apco_utils