mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Repro:
Testing WIP.
b/373761573
```dart
import 'package:flutter/material.dart';
void main() {
runApp(const Example());
}
class Example extends StatefulWidget {
const Example({super.key});
@override
State<Example> createState() => _ExampleState();
}
class _ExampleState extends State<Example> {
bool value = true;
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: Semantics(
child: Text(
value ? 'Hello, world!' : 'Goodbye, World!',
),
button: true,
onTap: () async {
await null;
setState(() {
value = !value;
});
},
),
),
),
);
}
}
```
Description
Flutter makes it easy and fast to build beautiful apps for mobile and beyond
androidapp-frameworkcross-platformdartdart-platformdesktopflutterflutter-packagefuchsiaioslinux-desktopmacosmaterial-designmobilemobile-developmentskiawebweb-frameworkwindows
2.5 GiB
Languages
Dart
75%
C++
16.5%
Objective-C++
2.9%
Java
2.8%
Objective-C
0.7%
Other
1.9%