1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-18 19:22:54 +01:00
git-touch-android-ios-app/lib/widgets/picker.dart
2019-09-29 15:02:06 +08:00

21 lines
419 B
Dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class PickerItem<T> {
final T value;
final String text;
PickerItem(this.value, {@required this.text});
}
class PickerGroupItem<T> {
final T value;
final List<PickerItem<T>> items;
final Function(T value) onChange;
PickerGroupItem({
@required this.value,
@required this.items,
@required this.onChange,
});
}