mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +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());
|
||||
|
||||
class JournalList extends StatefulWidget {
|
||||
@override
|
||||
createState() => new JournalListState();
|
||||
}
|
||||
|
||||
class JournalListState extends State<JournalList> {
|
||||
class JournalList extends StatelessWidget {
|
||||
final _biggerFont = const TextStyle(fontSize: 18.0);
|
||||
|
||||
@override
|
||||
@ -38,7 +33,7 @@ class JournalListState extends State<JournalList> {
|
||||
),
|
||||
subtitle: new Text("10:24" + "\n" + body),
|
||||
onTap: () {
|
||||
setState(() {});
|
||||
print("Item tapped");
|
||||
},
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user