flutter-navigation

Flutter MaterialPageRoute as fullscreenDialog appears underneath BottomNavigationBar

允我心安 提交于 2020-08-17 12:09:45
问题 There's a similar unanswered question here: FullscreenDialog screen not covering bottomnavigationbar but I want to provide more context, to see if that helps find a solution. We'll start at the top with my main.dart , I am building a MaterialApp that builds a custom DynamicApp . Here's the important stuff: Widget build(BuildContext context) { var _rootScreenSwitcher = RootScreenSwitcher(key: switcherKey); return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.green

Flutter MaterialPageRoute as fullscreenDialog appears underneath BottomNavigationBar

可紊 提交于 2020-08-17 12:09:31
问题 There's a similar unanswered question here: FullscreenDialog screen not covering bottomnavigationbar but I want to provide more context, to see if that helps find a solution. We'll start at the top with my main.dart , I am building a MaterialApp that builds a custom DynamicApp . Here's the important stuff: Widget build(BuildContext context) { var _rootScreenSwitcher = RootScreenSwitcher(key: switcherKey); return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.green

Navigation.pop() and Navigation.push() acting strangely

被刻印的时光 ゝ 提交于 2020-01-25 06:49:12
问题 I'm creating a Sign-Up section in my application using Flutter and I'm trying to do the following: The user clicks Sign-Up The user presses the back button at any stage during sign-up Then an alert dialog pops up asking if the user really wants to leave sign-up process The user presses Yes The user is then taken back to the first (main) page of the app. This works for the first page after I click sign-up, but when I get to the second page, step 4 keeps me on the same page, then when I try it

Empty state page and Navigator issues?

走远了吗. 提交于 2020-01-05 03:55:09
问题 I want to implement empty state page in Flutter app, when news feed is empty. When there is no activity in feed, I want to show ‘no activity’ . When database has data, I want to load this from StreamBuilder to ListView.builder I try implement with: child: StreamBuilder( stream: collection.snapshots(), builder: (context, snapshot) { if(snapshot.hasData) { return ListView.builder( itemBuilder: (context, index) => build(context, snapshot.data.documents[index]), itemCount: snapshot.data.documents

How to navigate to another page but show information according to the items on my list that was pressed?

妖精的绣舞 提交于 2019-12-25 00:37:24
问题 I'm trying to create my first app with flutter, it's a basic app to show items on a list and you tap on them to get the information. I've created the list and the contact page, I can navigate from one page to the other but I'm stuck now on how to make flutter show the information according to the contact I choose on the list, so I dont need to write one class for each contact. Is there a way to do it? import 'package:flutter/material.dart'; import 'package:whatsapp_casimiro/contacts/contact

How solve problem Appbar icon clicked to navigate

半腔热情 提交于 2019-12-11 18:44:38
问题 I try to develop flutter application. In this application I used Appbar with user icon to navigate another page. Now I am clicked that icon(person icon) it shows error. . It has not proper documentation though internet. I couldn't found answer. My source code is class MyAppState extends State<MyApp> { @override Widget build(BuildContext context) { return new MaterialApp( home: new Scaffold( appBar: new AppBar( title: new Text("Web Issue finder"), actions: <Widget>[ new IconButton( icon: Icon

In a Nested Navigator Structure of Flutter, How do you get the a Specific Navigator?

眉间皱痕 提交于 2019-12-04 18:52:43
问题 I have this problem when I have Nested Navigator s. So something like, class App extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), initialRoute: "/", routes: { '/': (context) => SomeOneView(), '/two': (context) => SomeTwoView(), '/three': (context) => SomeThreeView(), }, ); } } class SomeOneView extends StatefulWidget { @override _SomeOneViewState createState() =>

Passing data between screens in Flutter

三世轮回 提交于 2019-11-27 17:53:52
As I'm learning Flutter I've come to navigation. I want to pass data between screens similarly to passing data between Activities in Android and passing data between View Controllers in iOS . How do I do it in Flutter? Related questions: The best way to passing data between widgets in Flutter Flutter pass data between widgets? Flutter/ How to pass and get data between Statefulwidget This answer will cover both passing data forward and passing data back. Unlike Android Activities and iOS ViewControllers, different screens in Flutter are just widgets. Navigating between them involves creating

Passing data between screens in Flutter

╄→尐↘猪︶ㄣ 提交于 2019-11-26 09:21:31
问题 As I\'m learning Flutter I\'ve come to navigation. I want to pass data between screens similarly to passing data between Activities in Android and passing data between View Controllers in iOS. How do I do it in Flutter? Related questions: The best way to passing data between widgets in Flutter Flutter pass data between widgets? Flutter/ How to pass and get data between Statefulwidget 回答1: This answer will cover both passing data forward and passing data back. Unlike Android Activities and iOS