Skip to content

Instantly share code, notes, and snippets.

@ulusoyca
ulusoyca / router_deleagte_04_002.dart
Last active January 23, 2023 18:35
RoouterDelegate 002_04
class MyAppRouterDelegate extends RouterDelegate<MyAppConfiguration>
with ChangeNotifier, PopNavigatorRouterDelegateMixin<MyAppConfiguration> {
final GlobalKey<NavigatorState> _navigatorKey;
final AuthRepository authRepository;
final ColorsRepository colorsRepository;
bool _show404;
bool get show404 => _show404;
set show404(bool value) {
@ulusoyca
ulusoyca / router_delegate_002_03.dart
Last active January 23, 2023 18:37
Router Delegate 03
class MyAppRouterDelegate extends RouterDelegate with ChangeNotifier, PopNavigatorRouterDelegateMixin {
final GlobalKey<NavigatorState> _navigatorKey;
final AuthRepository authRepository;
final ColorsRepository colorsRepository;
bool _loggedIn;
bool get loggedIn => _loggedIn;
set loggedIn(value) {
_loggedIn = value;
notifyListeners();
@ulusoyca
ulusoyca / logout_fab_navigator_02.dart
Last active January 23, 2023 18:36
LogoutFab02
class LogoutFab extends StatelessWidget {
final VoidCallback onLogout;
final Color color;
const LogoutFab({Key key, @required this.onLogout, this.color}) : super(key: key);
@override
Widget build(BuildContext context) {
final authViewModel = context.watch<AuthViewModel>();
@ulusoyca
ulusoyca / navigator_with_auth_02.dart
Last active January 23, 2023 18:36
NavigatorWithAuth
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
MyAppRouterDelegate delegate;
AuthRepository authRepository;
@override
@ulusoyca
ulusoyca / router_delegate_02.dart
Last active January 23, 2023 18:36
nav2_router_delegate_02
class MyAppRouterDelegate extends RouterDelegate with ChangeNotifier, PopNavigatorRouterDelegateMixin {
final GlobalKey<NavigatorState> _navigatorKey;
bool _loggedIn;
bool get loggedIn => _loggedIn;
set loggedIn(value) {
_loggedIn = value;
notifyListeners();
}
@adamloving
adamloving / temporary-email-address-domains
Last active April 15, 2024 00:32
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com