Skip to content

Instantly share code, notes, and snippets.

@LeBaleiro
Last active October 23, 2022 13:13
Show Gist options
  • Save LeBaleiro/2f45a1246280362ed9741d0442c7bc15 to your computer and use it in GitHub Desktop.
Save LeBaleiro/2f45a1246280362ed9741d0442c7bc15 to your computer and use it in GitHub Desktop.
Flutter Web

Links úteis

Meus contatos:

Linktree

Apresentação

Google docs

Lazy loading

Lazy loading

RouteMiddleware

Deploy

Domínio customizado:

Desktop para desenvolver:

SEO

Exemplos Flutter Web

Text overflow no web (placeholder no lugar das reticências)

Issue #82506

Software usado para editar a fonte: FontLab

Tipos de renders

Web renders

Responsividade

Videos

Widgets responsivos

import 'dart:async';
import 'package:app_core/app_core.dart';
class RouteMiddleware extends RouteGuard {
FutureOr<void> Function(String path, ParallelRoute route)? middleware;
RouteMiddleware(this.middleware);
@override
Future<bool> canActivate(String path, ParallelRoute route) async => true;
@override
FutureOr<ModularRoute?> pre(ModularRoute route) async {
await middleware?.call(route.uri.toString(), route as ParallelRoute);
return route;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment