add const

This commit is contained in:
PAlexanderFranklin 2023-09-30 14:35:15 -07:00
parent 237495def6
commit 95e9a0b8f6

View File

@ -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"),
);
}
}