26 lines
564 B
Markdown
26 lines
564 B
Markdown
|
<!-- TODO: Was ist Flutter? -->
|
||
|
|
||
|
# Flutter
|
||
|
|
||
|
Was ist Flutter [@FlutterArchitecturalOverviewb]
|
||
|
|
||
|
test [@weiserComputer21stCentury1999]
|
||
|
|
||
|
```{#test .dart .number-lines caption="Example Dart test"}
|
||
|
import 'package:retry/retry.dart';
|
||
|
|
||
|
final response = await retry(
|
||
|
// Make a GET request
|
||
|
() => http.get('https://google.com').timeout(Duration(seconds: 5)),
|
||
|
// Retry on SocketException or TimeoutException
|
||
|
retryIf: (e) => e is SocketException || e is TimeoutException,
|
||
|
);
|
||
|
print(response.body);
|
||
|
```
|
||
|
|
||
|
Nice Dart highlighting!
|
||
|
|
||
|

|
||
|
|
||
|
WORKING :)
|