-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feature/add_search_bar
- Loading branch information
Showing
13 changed files
with
478 additions
and
1 deletion.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
examples/mirai_gallery/assets/json/auto_complete_example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"type": "scaffold", | ||
"appBar": { | ||
"type": "appBar", | ||
"title": { | ||
"type": "text", | ||
"data": "Autocomplete Basic" | ||
} | ||
}, | ||
"body": { | ||
"type": "center", | ||
"child": { | ||
"type": "column", | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"data": "Type below to autocomplete the following possible results: [aardvark, bobcat, chameleon]." | ||
}, | ||
{ | ||
"type": "autocomplete", | ||
"options": [ | ||
"aardvark", "bobcat", "chameleon" | ||
], | ||
"onSelected": {} | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
PODS: | ||
- FlutterMacOS (1.0.0) | ||
- path_provider_foundation (0.0.1): | ||
- Flutter | ||
- FlutterMacOS | ||
- sqflite (0.0.3): | ||
- Flutter | ||
- FlutterMacOS | ||
|
||
DEPENDENCIES: | ||
- FlutterMacOS (from `Flutter/ephemeral`) | ||
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`) | ||
- sqflite (from `Flutter/ephemeral/.symlinks/plugins/sqflite/darwin`) | ||
|
||
EXTERNAL SOURCES: | ||
FlutterMacOS: | ||
:path: Flutter/ephemeral | ||
path_provider_foundation: | ||
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin | ||
sqflite: | ||
:path: Flutter/ephemeral/.symlinks/plugins/sqflite/darwin | ||
|
||
SPEC CHECKSUMS: | ||
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 | ||
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c | ||
sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec | ||
|
||
PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367 | ||
|
||
COCOAPODS: 1.14.3 | ||
COCOAPODS: 1.15.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/mirai/lib/src/parsers/mirai_auto_complete/mirai_auto_complete.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
export 'mirai_auto_complete_parser.dart'; | ||
|
||
part 'mirai_auto_complete.freezed.dart'; | ||
part 'mirai_auto_complete.g.dart'; | ||
|
||
@freezed | ||
class MiraiAutoComplete with _$MiraiAutoComplete { | ||
const factory MiraiAutoComplete({ | ||
required List<String> options, | ||
Map<String, dynamic>? onSelected, | ||
@Default(200) double optionsMaxHeight, | ||
// optionsViewBuilder, | ||
@Default(OptionsViewOpenDirection.down) | ||
OptionsViewOpenDirection optionsViewOpenDirection, | ||
String? initialValue, | ||
}) = _MiraiAutoComplete; | ||
|
||
factory MiraiAutoComplete.fromJson(Map<String, dynamic> json) => | ||
_$MiraiAutoCompleteFromJson(json); | ||
} |
Oops, something went wrong.