Flutter Time Picker

Flutter 时间选择器,iOS样式

原版:https://github.com/wuzhendev/flutter-cupertino-date-picker 在原版的基础上支持了年月日时分秒的选择样式

示例

Getting Started

1,依赖与获取

在项目的 pubspec.yaml 文件中添加依赖:
    dependencies:
        time_picker: ^0.0.1
执行 flutter packages get

2,导入

    import 'package:time_picker/time_picker.dart';

Libraries

time_picker

Dart

VM

dart:ffi
Foreign Function Interface for interoperability with the C programming language. [...]

Web

dart:html
HTML elements and other resources for web-based applications that need to interact with the browser and the DOM (Document Object Model). [...]
dart:js
Low-level support for interoperating with JavaScript. [...]
dart:js_util
Utility methods to efficiently manipulate typed JSInterop objects in cases where the name to call is not known at runtime. You should only use these methods when the same effect cannot be achieved with @JS annotations. These methods would be extension methods on JSObject if Dart supported extension methods.