草庐IT

route_geometry

全部标签

android - Flutter:为什么我收到错误 "Route builders must never return null"?

我是Flutter新手,下面是我的代码homepage.dartimport'package:flutter/material.dart';import'./product_page.dart';classHomepageextendsStatelessWidget{@overrideWidgetbuild(BuildContextcontext){//TODO:implementbuildreturnScaffold(appBar:AppBar(title:Text("ChocoFactory"),),body:HomepageUI(),);}}classHomepageUIexte

android - Flutter:为什么我收到错误 "Route builders must never return null"?

我是Flutter新手,下面是我的代码homepage.dartimport'package:flutter/material.dart';import'./product_page.dart';classHomepageextendsStatelessWidget{@overrideWidgetbuild(BuildContextcontext){//TODO:implementbuildreturnScaffold(appBar:AppBar(title:Text("ChocoFactory"),),body:HomepageUI(),);}}classHomepageUIexte

dart - flutter 错误 "Could not navigate to initial route"

我在启动Flutter应用时遇到以下错误:══╡EXCEPTIONCAUGHTBYFLUTTERFRAMEWORK╞═════════════════════════════════════════════════════════Thefollowingmessagewasthrown:Couldnotnavigatetoinitialroute.Therequestedroutenamewas:"/animals/cats/lolcats"Thefollowingrouteswerethereforeattempted:*/*/animals*/animals/cats*/anima

dart - flutter 错误 "Could not navigate to initial route"

我在启动Flutter应用时遇到以下错误:══╡EXCEPTIONCAUGHTBYFLUTTERFRAMEWORK╞═════════════════════════════════════════════════════════Thefollowingmessagewasthrown:Couldnotnavigatetoinitialroute.Therequestedroutenamewas:"/animals/cats/lolcats"Thefollowingrouteswerethereforeattempted:*/*/animals*/animals/cats*/anima

dart - Navigator routes 清除flutter的堆栈

在我的应用程序中,我有三个屏幕login、verifyotp、generatepass。我知道如何从一个页面移动到另一个页面,例如:Navigator.pushNamed(context,"/theNameOfThePage");。我有一个从login->verifyotp->generatepass移动的流程,我现在的问题是如何从generatepass移动到登录页面并清除所有堆栈。我是一名android开发人员,所以在android中我们有intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR

dart - Navigator routes 清除flutter的堆栈

在我的应用程序中,我有三个屏幕login、verifyotp、generatepass。我知道如何从一个页面移动到另一个页面,例如:Navigator.pushNamed(context,"/theNameOfThePage");。我有一个从login->verifyotp->generatepass移动的流程,我现在的问题是如何从generatepass移动到登录页面并清除所有堆栈。我是一名android开发人员,所以在android中我们有intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR

geometry - 如何使用 Flutter 的 PhysicalModel 制作圆形边框?

我正在尝试在PhysicalModel中制作圆形边框。如果我不将我的小部件包装在PhysicalModel中,它会起作用,但一旦我这样做,我会得到一个方形边框。newPhysicalModel(color:Colors.green,child:newContainer(width:50.0,height:50.0,decoration:newBoxDecoration(borderRadius:newBorderRadius.circular(25.0),border:newBorder.all(width:5.0,color:Colors.red,),),),),

geometry - 如何使用 Flutter 的 PhysicalModel 制作圆形边框?

我正在尝试在PhysicalModel中制作圆形边框。如果我不将我的小部件包装在PhysicalModel中,它会起作用,但一旦我这样做,我会得到一个方形边框。newPhysicalModel(color:Colors.green,child:newContainer(width:50.0,height:50.0,decoration:newBoxDecoration(borderRadius:newBorderRadius.circular(25.0),border:newBorder.all(width:5.0,color:Colors.red,),),),),

routes - Flutter 重定向到 initState 上的页面

我有一个应用程序,您需要登录才能继续(例如使用Google)。我想在需要验证时重定向用户。但是,当我运行Navigator.of(context).pushNamed("myroute")时。我收到以下错误:══╡EXCEPTIONCAUGHTBYWIDGETSLIBRARY╞═══════════════════════════════════════════════════════════I/flutter(5624):Thefollowingassertionwasthrownbuilding_ModalScopeStatus(active):I/flutter(5624):se

routes - Flutter 重定向到 initState 上的页面

我有一个应用程序,您需要登录才能继续(例如使用Google)。我想在需要验证时重定向用户。但是,当我运行Navigator.of(context).pushNamed("myroute")时。我收到以下错误:══╡EXCEPTIONCAUGHTBYWIDGETSLIBRARY╞═══════════════════════════════════════════════════════════I/flutter(5624):Thefollowingassertionwasthrownbuilding_ModalScopeStatus(active):I/flutter(5624):se