Questions tagged [flutter-onpressed]
72 questions
0
votes
1 answer
FutureBuilder does not get into builder?
I want to get two parameters from createUser response.
I have a raisedbutton and i want to use FutureBuilder when onPressed.
future property works well, but i can not get in builder property. I tried everything but i could not find solution.…

jancooth
- 555
- 1
- 10
- 25
0
votes
0 answers
How do I return a value when pushing on a button?
EDIT: how to find out outside of my class if the button has been pressed?
I tried with a method named isPressed with an @override in WaitForvalidation() but it return always "false" when I click on the button. It's like an object is remake just…

Yann
- 21
- 1
- 3
0
votes
1 answer
Navigator change page on async button press
Very new to Flutter. How would I push a new route predicated on a condition invoked by a button press? (asynchronous sign in call).
This sort of thing: if signIn (async) = success -> Navigator.push
Cheers
Widget buildButtons() {
return new…

C. Boyle
- 25
- 1
- 7
0
votes
1 answer
flutter,dart - parameter from onpressed properties
I want to pass parameters onto the 'onpressed'
:) == official syntax
:( == get a void error
: p == is the trick I wrote, which doesn't give me an editor error,
but a console error with setstate() after dispose() message
Is there a way…

bora
- 58
- 4
0
votes
2 answers
If Else condition problem in onPressed() property in Dart/Flutter
I'm looking to highlight a button from a grid when it's pushed.
Unfortunately, when I do so, the whole column lights up. As I'm new to flutter/Dart and to coding in general, I'm not sure if my problème is my lack of logic or something that I…

Théo
- 51
- 1
- 7
0
votes
1 answer
How to link Flutter StaggeredGridView items individually?
Following a tutorial on StaggeredGridView, I successfully built a page to display staggered grids of text and an icon. The tutorial stopped short on explaining how to link each grid item separately. I am aware of onTap, GestureDetector, OnPressed,…

Mark
- 83
- 1
- 8
0
votes
2 answers
How to give onpress function on gridview list in flutter?
i have a gridmodel list view in my flutter app,i have created dart file for each of the item present in the gridview but i dont know how to give onpress function on the gridmodel list view so that it will navigate me to next page
class GridItem…

akshay dhone
- 93
- 1
- 2
- 8
0
votes
3 answers
Flutter: Is there an onhold option instead of oppressed once to repeat SetState
I want a button which I can hold down and then Setstate is repeating, unless I stop holding it.
I am a beginner and working at my first app. I want to calculate volume. People have to put in height, width and dept. I don't want in text(form)field,…

Margriet
- 197
- 2
- 10
0
votes
2 answers
Flutter - Changing color of RaisedButton on press
Everything I have read about this suggests you can do this work with SetState. This is what I have been using and it will just not redraw.
class ServerSelectionState extends State {
bool server1Selected, server2Selected,…

Bisclavret
- 1,327
- 9
- 37
- 65
-1
votes
1 answer
I don't know how to activate the phone button to go back without appbar
I created a flutter webview, but when I try to go back to the previous page the app closes. How can I activate the back key on the phone? I would like to use the phone key without adding any more. I thought about using Onbackpressed but in flutter…
-1
votes
2 answers
flutter can't change of value of variable
i have this class :
class BottomNavBar extends StatefulWidget {
final int activeTabIndex;
const BottomNavBar({Key? key, required this.activeTabIndex})
: super(key: key);
@override
BottomNavBarState createState() =>…
user16886755
-1
votes
1 answer
Navigating to a new page with button class
This is my buttons class. I want to use its on pressed function to navigate to another page.
class DigerButtonu extends StatelessWidget {
final String butonyazisi;
final IconData butoniconu;
final Function butonfonksiyonu;
const…

Fatih Mehmet Yüksel
- 21
- 5