TF-524 Create RecentSearchCache and TypeAHeadQuickSearch widget
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
typedef FutureOr<Iterable<T>> SuggestionsCallback<T>(String pattern);
|
||||
typedef FutureOr<Iterable<R>> FetchRecentActionCallback<R>(String pattern);
|
||||
typedef Widget ItemBuilder<T>(BuildContext context, T itemData);
|
||||
typedef void SuggestionSelectionCallback<T>(T suggestion);
|
||||
typedef void RecentSelectionCallback<R>(R recent);
|
||||
typedef Widget ErrorBuilder(BuildContext context, Object? error);
|
||||
typedef Widget ButtonActionBuilder(BuildContext context, dynamic action);
|
||||
typedef void ButtonActionCallback(dynamic action);
|
||||
|
||||
typedef Widget AnimationTransitionBuilder(
|
||||
BuildContext context, Widget child, AnimationController? controller);
|
||||
@@ -0,0 +1,5 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
|
||||
final supportedPlatform = (kIsWeb || Platform.isAndroid || Platform.isIOS);
|
||||
Reference in New Issue
Block a user