Milad-Akarie / auto_route_library

Flutter route generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

useMaterial3 property in MaterialApp.router

shahmirzali49 opened this issue · comments

@Shahmirzali-Huseynov this has nothing to do with this package I believe.

@Milad-Akarie why? We are using MaterialApp.router instead of MaterialApp. In MaterialApp have the useMaterial3 property, but not in MaterialApp.router.

Pass it to theme
Theme.light().copyWith(useMaterial3: true)