skip to Main Content

Router based navigation with flutter bloc

I am trying to build my own router similar to go_router, based on flutter_bloc. What I am trying to achieve is very similar to this guide that inspired the minimal implementation below: import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; void main()…

VIEW QUESTION

Flutter – how resolve that: the constructor being called isnt' a const constructor. Try to remove 'const' from the invocation

import 'package:flutter/material.dart'; class Something { Something({required this.first, required this.second}); final String first; final String second; } class MapGood extends StatefulWidget { const MapGood({Key? key}) : location = **const** Something( // the constructor being called isnt' a const constructor. Try to…

VIEW QUESTION
Back To Top
Search