Questions tagged [flutter-functional-widget]

10 questions
194
votes
18 answers

How can I change the background color of Elevated Button in Flutter from function?

I am new to Flutter, and I started Flutter last week. And now I want to make a simple Xylophone application. I created the UI successfully and made a function playSound(int soundNumber), but when I call this function for playing sound, it gives me…
Aqeel Mughal
  • 2,105
  • 2
  • 6
  • 14
1
vote
0 answers

How to use flutter to send SMS content to specific gmail automatically

i want to make app to capture SMS content and send it directly to specific gmail without any share button i want to know how to implement this app or the function
1
vote
2 answers

Flutter future Boolean function always return default value

I have a Future boolean function in that function I checked some data using the map function. if and else both conditions set the boolean variable is true. but it always returns the default false value. below code is my function. Future
0
votes
2 answers

my question is not updating even after changing the index to that question

what i want in this code is that the questions to change to the next one in the map whenever the user presses any of the true of false buttons, but the question is not updating even after changing the index and using setstate. I don't know what is…
0
votes
0 answers

Redirect Back to Login After Reset Password

Hi after inputting email and click submit for forgot password page it stays on the same page, I would like to route or send it back to the login page. In this function where should I add the route is on the "cubit", "state" or the on the "form"…
0
votes
0 answers

Flutter How to send and show captured image/ video to next page?

I've created a screen where I can use a button to open the camera and take video. And above that button, I made a container to display the video. But I want to show this container containing video to display on the next page. As I am new to flutter,…
0
votes
1 answer

How do I turn this hardcoded widget into a reusable & modular widget with proper function parameter?

I am intensely confused as to how to go about this, don't even think I have the correct terminology. I am devoid of this basic Flutter knowledge. I want to make this page widget modular so it can be used in many places with only a function…
RobbB
  • 1,214
  • 11
  • 39
0
votes
2 answers

Flutter // click button to execute two function using async and wait on function onPressed and get data from api

try to put some value on local variable on TextField and onPressed to get one variable on local and second variable as given on TextField and the same time click the onPressed to working two functions one is doSomething another one is fetchBalance…
0
votes
2 answers

How to call a function from another statefull class in flutter?

I am learning flutter, I want to call a function (which is in statefull class) into another statefull class. I searched everywhere but there is no solid solution. Can anyone just suggest or provide me the wright way to call the function?
Rakesh Saini
  • 660
  • 2
  • 7
  • 20
0
votes
1 answer

Unnecessary rebuilds with flutter_hooks

I'm attempting to use StateNotifier, Provider, flutter_hooks, and functional_widget together. I'm seeing rebuilds in the widget hierarchy where I am not expecting them. I've setup a simple use case below. My bloc has a method updateName() which is…
Matthew Smith
  • 4,387
  • 3
  • 15
  • 14