Questions tagged [pass-data]
252 questions
342
votes
8 answers
Passing data to StatefulWidget and accessing it in its state in Flutter
I have 2 screens in my Flutter app: a list of records and a screen for creating and editing records.
If I pass an object to the second screen that means I am going to edit this and if I pass null it means that I am creating a new item. The editing…

moonvader
- 19,761
- 18
- 67
- 116
274
votes
8 answers
Passing Data to a Stateful Widget in Flutter
I'm wondering what the recommended way of passing data to a stateful widget, while creating it, is.
The two styles I've seen are:
class ServerInfo extends StatefulWidget {
Server _server;
ServerInfo(Server server) {
this._server = server;
…

Mojachiee
- 2,859
- 4
- 14
- 9
211
votes
8 answers
How to pass data from 2nd activity to 1st activity when pressed back? - android
I've 2 activities, Activity1 and Activity2.
In Activity1 I've a Button and TextView.
When the button is clicked Activity2 is started.
In Activity2 I've an EditText.
I want to display the data retrieved from EditText in Activity2 in the TextView in…

kumareloaded
- 3,882
- 14
- 41
- 58
90
votes
15 answers
How to pass data to view in Laravel?
Im passing data to my blade view with return View::make('blog', $posts); and in my blade view I'm trying to run an @foreach ($posts as $post) I end up with an error saying that $posts isn't defined.
My question is how would the $posts array be…

Sam Pettersson
- 3,049
- 6
- 23
- 37
52
votes
2 answers
In Flutter, how do I pass data into a Stateless Widget?
I'm trying to build my first Flutter app, and have run into difficulty with passing data into Stateless Widgets. I have the following classes:
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new…

Sharon
- 3,471
- 13
- 60
- 93
45
votes
5 answers
Flutter - How to pass user data to all views
I'm new to the flutter world and mobile app development and struggling with how I should pass user data throughout my app.
I've tried several things, but none seem great and I'm sure there are best practice patterns I should be following.
Because it…

Aaron
- 4,206
- 3
- 24
- 28
27
votes
5 answers
Gitlab CI/CD Pass artifacts/variables between pipelines
tl;dr
How do I pass data, e.g. the $BUILD_VERSION variable, between jobs in different pipelines in Gitlab CI?
So (in my case) this:
Pipeline 1 on push ect. Pipeline 2 after merge
`building` job ... `deploying` job
…

miile7
- 2,547
- 3
- 23
- 38
19
votes
4 answers
Pass data through navigation back button
I am in this situation:
I am passing 4 array from Progress Table to Detail Exercise using prepare for segue and it works fine! The problem begin when I try to pass the data back from the Detail Exercise Controller to the Progress Table Controller.…

Luca Alberto
- 1,195
- 3
- 11
- 30
16
votes
2 answers
React Native Pass data between sibling views
I'm developing a simple todo-list app using React Native, my issue is the following: I have a NavigatorIOS at the root of my project, with a component containing a ListView as initial route, and a navigation bar button that leads to a task creation…

sweepy_
- 1,333
- 1
- 9
- 28
13
votes
4 answers
how to pass data from activity to running service
I want to send data to the server periodically, I'm using background Service for that, but I want to send when the data got updated, and updated data I'm getting in Activity and the Service is running in background.. so how can i pass data to…

Tushar Kotecha
- 764
- 2
- 7
- 27
13
votes
2 answers
Pass data between two Apps by url scheme in swift?
There are two test Apps called Sender & Receiver
They communicate with each other by Url Scheme. I would like to send a String from Sender to Receiver, is that possible?
Detail about the String:
I both create Textfields in Sender and Receiver, I…

HungCLo
- 442
- 2
- 6
- 21
11
votes
1 answer
Transfer file to webworker: DataCloneError: The object could not be cloned
I want to transfer a file from a form to a webworker. In chrome i simple can use this code to transfer a FileList-Object:
worker.postMessage(files: array_files);
But with Firefox i get this error:
Transfer file to webworker: DataCloneError: The…

Kristof Komlossy
- 623
- 2
- 7
- 19
10
votes
5 answers
How to pass data between UIViewControllers with protocols/delegates
In the code below I have a ViewController("SenderViewController"), which passes a message to the main ViewController when a button is tapped. What I don't fully understand is how does messageData() method in the main ViewController know when to…

fs_tigre
- 10,650
- 13
- 73
- 146
5
votes
1 answer
How to navigate between pages in ionic 4 & 5?
I had a project that I developed with ionic 3. But I took a break and when I started working again with ionic, I saw the navigation system change in the new versions. My project is a simple project. This project that lists the data in the a array…

ucnumara
- 155
- 1
- 1
- 11
4
votes
3 answers
In Angular 8, how to pass dynamic data from an observable to a modal-dialog?
In Angular 8 I want to implement an Angular-Material Modal-Dialog. Upon clicking on a user image, the user data should be displayed in the modal. I am unable to pass the dynamic data of the observable from the Profile component to the Profile-Modal…

maraxai
- 135
- 1
- 3
- 14