-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring - do not clone this branch unless you know whare you are …
…doing
- Loading branch information
1 parent
e61599e
commit 717b335
Showing
57 changed files
with
509 additions
and
564 deletions.
There are no files selected for viewing
50 changes: 0 additions & 50 deletions
50
lib/app/resources/home/views/cloud_notes/models/cloud_note_model.g.dart
This file was deleted.
Oops, something went wrong.
74 changes: 0 additions & 74 deletions
74
lib/app/resources/home/views/cloud_notes/models/user_model.g.dart
This file was deleted.
Oops, something went wrong.
47 changes: 0 additions & 47 deletions
47
lib/app/resources/home/views/local_notes/models/note_model.g.dart
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
Future navigateTo( | ||
BuildContext context, { | ||
required String destination, | ||
Map<String, dynamic>? arguments, | ||
}) { | ||
return Navigator.pushNamed( | ||
context, | ||
destination, | ||
arguments: arguments, | ||
); | ||
} | ||
|
||
Future navigateReplaceTo( | ||
BuildContext context, { | ||
required String destination, | ||
Map<String, dynamic>? arguments, | ||
}) { | ||
return Navigator.pushReplacementNamed(context, destination, | ||
arguments: arguments); | ||
} | ||
|
||
Future navigateEndTo( | ||
BuildContext context, { | ||
required String destination, | ||
Map<String, dynamic>? arguments, | ||
}) { | ||
return Navigator.pushNamedAndRemoveUntil( | ||
context, | ||
destination, | ||
arguments: arguments, | ||
(route) => false, | ||
); | ||
} |
Oops, something went wrong.