mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
JournalList doesn't have any internal state
This commit is contained in:
@ -2,12 +2,7 @@ import 'package:flutter/material.dart';
|
|||||||
|
|
||||||
void main() => runApp(new MyApp());
|
void main() => runApp(new MyApp());
|
||||||
|
|
||||||
class JournalList extends StatefulWidget {
|
class JournalList extends StatelessWidget {
|
||||||
@override
|
|
||||||
createState() => new JournalListState();
|
|
||||||
}
|
|
||||||
|
|
||||||
class JournalListState extends State<JournalList> {
|
|
||||||
final _biggerFont = const TextStyle(fontSize: 18.0);
|
final _biggerFont = const TextStyle(fontSize: 18.0);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -38,7 +33,7 @@ class JournalListState extends State<JournalList> {
|
|||||||
),
|
),
|
||||||
subtitle: new Text("10:24" + "\n" + body),
|
subtitle: new Text("10:24" + "\n" + body),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
setState(() {});
|
print("Item tapped");
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user