Skip to content

Browser Title in tab #226

Closed Answered by neoacevedo
neoacevedo asked this question in Q&A
Discussion options

You must be logged in to vote

I figured out. I think in Flutter should work in the same way.

In Jaspr, we have to import dart:html and for Flutter, we may import the same library or import the new one package:web/web.dart. This last one won't work for us in Jaspr because of if we have the Text component will be marked as an ambiguous import because is imported in 'package:jaspr/src/framework/framework.dart' and 'package:web/src/dom/dom.dart', both imported in 'package:jaspr/jaspr.dart'.

After that we can use document.title = 'The title' in each page build method before the yield or return statement.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by neoacevedo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant