flutter_lxp_date

A Get Time Flutter plugin.

Usage # To use this plugin, add flutterlxpdate as a dependency in your pubspec.yaml file.

Example #

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

import 'package:flutter/services.dart'; import 'package:flutter_lxp_date/flutter_lxp_date.dart';

String platformTime; // Platform messages may fail, so we use a try/catch PlatformException. try { platformTime = await FlutterLxpDate.platformTime; } on PlatformException { platformTime = 'Failed to get platform time.'; }

Libraries

flutter_lxp_date