From d6498b28827773afd25b035bf2dfbce5a4095e70 Mon Sep 17 00:00:00 2001 From: apoleon33 Date: Sat, 30 Dec 2023 23:24:11 +0100 Subject: [PATCH] fixed few warnings --- lib/albumCard.dart | 4 ++-- lib/main.dart | 11 +---------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/lib/albumCard.dart b/lib/albumCard.dart index 624480b..ad2af11 100644 --- a/lib/albumCard.dart +++ b/lib/albumCard.dart @@ -127,9 +127,9 @@ class _AlbumCardState extends State { Row( children: [ Padding( - padding: EdgeInsets.only(left: 8), + padding: const EdgeInsets.only(left: 8), child: ActionChip( - avatar: Icon(Icons.music_note), + avatar: const Icon(Icons.music_note), label: Text( genre, style: TextStyle( diff --git a/lib/main.dart b/lib/main.dart index ddac512..aec542b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -49,15 +49,6 @@ class MyHomePage extends StatefulWidget { } class _MyHomePageState extends State { - void _incrementCounter() { - setState(() { - // This call to setState tells the Flutter framework that something has - // changed in this State, which causes it to rerun the build method below - // so that the display can reflect the updated values. If we changed - // _counter without calling setState(), then the build method would not be - // called again, and so nothing would appear to happen. - }); - } @override Widget build(BuildContext context) { @@ -96,7 +87,7 @@ class _MyHomePageState extends State { title: Center( child: Text( widget.title, - style: TextStyle(fontFamily: 'Cloister'), + style: const TextStyle(fontFamily: 'Cloister'), )), actions: [