add const
This commit is contained in:
parent
237495def6
commit
95e9a0b8f6
@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
void main() {
|
||||
runApp(MyApp());
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
@ -73,7 +73,7 @@ class AddCall extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return ElevatedButton(
|
||||
onPressed: () => appState.addCall("hello world"),
|
||||
child: Text("buttonText"),
|
||||
child: const Text("buttonText"),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user