поправки

This commit is contained in:
bulatova_karina 2024-10-02 16:51:34 +04:00
parent 1089462d47
commit 1525ab309d

View File

@ -30,19 +30,13 @@ class MyHomePage extends StatefulWidget {
} }
class _MyHomePageState extends State<MyHomePage> { class _MyHomePageState extends State<MyHomePage> {
int _counter = 0; final Color _color = Colors.pink.shade300;
void _incrementCounter() {
setState(() {
_counter++;
});
}
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary, backgroundColor: _color,
title: Text(widget.title), title: Text(widget.title),
), ),
body: const MyWidget(), body: const MyWidget(),