Autocomplete async examples (#126283)
Added examples clarifying how to fetch Autocomplete options asynchronously.
This commit is contained in:
committed by
GitHub
parent
561169ec67
commit
9d882983ff
@@ -28,6 +28,30 @@ import 'theme.dart';
|
||||
/// ** See code in examples/api/lib/material/autocomplete/autocomplete.1.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example shows how to create an Autocomplete widget whose options are
|
||||
/// fetched over the network.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/autocomplete/autocomplete.2.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example shows how to create an Autocomplete widget whose options are
|
||||
/// fetched over the network. It uses debouncing to wait to perform the network
|
||||
/// request until after the user finishes typing.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/autocomplete/autocomplete.3.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example shows how to create an Autocomplete widget whose options are
|
||||
/// fetched over the network. It includes both debouncing and error handling, so
|
||||
/// that failed network requests show an error to the user and can be recovered
|
||||
/// from. Try toggling the network Switch widget to simulate going offline.
|
||||
///
|
||||
/// ** See code in examples/api/lib/material/autocomplete/autocomplete.4.dart **
|
||||
/// {@end-tool}
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [RawAutocomplete], which is what Autocomplete is built upon, and which
|
||||
|
||||
Reference in New Issue
Block a user