flutter_lxp_date 0.0.2 copy "flutter_lxp_date: ^0.0.2" to clipboard
flutter_lxp_date: ^0.0.2 copied to clipboard

A Get Time Flutter plugin.

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.'; }

0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

A Get Time Flutter plugin.

Homepage

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_lxp_date