Skip to content

Commit

Permalink
fixed few warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
apoleon33 committed Dec 30, 2023
1 parent 791f9aa commit d6498b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions lib/albumCard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ class _AlbumCardState extends State<AlbumCard> {
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(
Expand Down
11 changes: 1 addition & 10 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,6 @@ class MyHomePage extends StatefulWidget {
}

class _MyHomePageState extends State<MyHomePage> {
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) {
Expand Down Expand Up @@ -96,7 +87,7 @@ class _MyHomePageState extends State<MyHomePage> {
title: Center(
child: Text(
widget.title,
style: TextStyle(fontFamily: 'Cloister'),
style: const TextStyle(fontFamily: 'Cloister'),
)),

actions: [
Expand Down

0 comments on commit d6498b2

Please sign in to comment.