Skip to content

Commit

Permalink
#fixup flutter format
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Wei committed Dec 1, 2019
1 parent bf4ae35 commit 2adf8b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/routes/appbar_bottom_appbar_ex.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ class _BottomAppbarExampleState extends State<BottomAppbarExample> {
floatingActionButton: FloatingActionButton(
child: Icon(Icons.add),
mini: this._isFabMini,
onPressed: () => Fluttertoast.showToast(msg: 'Dummy floating action button'),
onPressed: () =>
Fluttertoast.showToast(msg: 'Dummy floating action button'),
),
floatingActionButtonLocation: this._fabLocation,
bottomNavigationBar: this._buildBottomAppBar(context),
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/data/todo_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TodoItem extends HiveObject {

TodoItem({this.id, this.content, this.isDone = false, createdAt})
: this.createdAt = createdAt ?? DateTime.now();

@override
String toString() {
return 'TodoItem(id=$id, content=$content, idDone=$isDone, createdAt=$createdAt)';
Expand Down
4 changes: 2 additions & 2 deletions lib/routes/persistence_hive_ex.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ class _HiveExampleState extends State<HiveExample> {
final hiveFolder = join(dir.path, kHiveFolder);
Hive.init(hiveFolder);
try {
// Normally we should register this at the app startup (i.e. in main.dart),
// putting it here might cuase the line to run twice and lead to errors
// Normally we should register this at the app startup (i.e. in main.dart),
// putting it here might cuase the line to run twice and lead to errors
// since this page can be opened twice.
Hive.registerAdapter(TodoItemAdapter(), 0);
} on HiveError catch (e) {
Expand Down

0 comments on commit 2adf8b9

Please sign in to comment.