From 3b581f91625b3a8ef2b599ea04518c92aad5a6e1 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Fri, 23 Oct 2020 01:28:59 +0200 Subject: [PATCH] const++ --- lib/main_autocomplete.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main_autocomplete.dart b/lib/main_autocomplete.dart index 28d8872e..0185514b 100644 --- a/lib/main_autocomplete.dart +++ b/lib/main_autocomplete.dart @@ -30,7 +30,7 @@ class MyHomePage extends StatefulWidget { class _MyHomePageState extends State { FocusNode _focusNode = FocusNode(); GlobalKey _textFieldKey = GlobalKey(); - TextStyle _textFieldStyle = TextStyle(fontSize: 20); + TextStyle _textFieldStyle = const TextStyle(fontSize: 20); @override void initState() { @@ -92,7 +92,7 @@ class _MyHomePageState extends State { overlayState.insert(suggestionTagoverlayEntry); // Removes the over lay entry from the Overly after 500 milliseconds - await Future.delayed(Duration(milliseconds: 5000)); + await Future.delayed(const Duration(milliseconds: 5000)); suggestionTagoverlayEntry.remove(); }