1 00:00:00,240 --> 00:00:03,960 In this part we are going to talk about state and scenes. 2 00:00:03,960 --> 00:00:07,480 We will talk about a change of state. 3 00:00:07,620 --> 00:00:15,210 So we want to make the screen cleaner and also we do not want the image and also the title and name 4 00:00:15,250 --> 00:00:18,060 trended rated every time. 5 00:00:18,060 --> 00:00:24,420 So we will do it these two card and only leave one card here. 6 00:00:24,420 --> 00:00:29,580 And also we will fix the picture and also the job title. 7 00:00:29,580 --> 00:00:32,040 So back to the FTA as a way we did it. 8 00:00:32,040 --> 00:00:37,440 These two card although we will copy the top title 9 00:00:40,830 --> 00:00:45,350 instead of using the instead of using the thicker. 10 00:00:45,390 --> 00:00:52,660 We also copied a profile you made. 11 00:00:52,930 --> 00:00:56,530 So now these two B will become fixed. 12 00:00:57,040 --> 00:01:02,710 And at the top of the app we will create a button which we were going to use this button to change the 13 00:01:02,710 --> 00:01:13,480 name of the card. 14 00:01:13,510 --> 00:01:20,380 So now there is a button on the top of the page and since that we were going to use that you state which 15 00:01:20,380 --> 00:01:20,960 is the. 16 00:01:20,980 --> 00:01:25,320 We hope we need to import from the state 17 00:01:29,270 --> 00:01:32,440 and here we will set a new variable name. 18 00:01:32,450 --> 00:01:38,120 And also with that name and then we used to use bait. 19 00:01:38,750 --> 00:01:41,240 We said that this state as Ellen Smith 20 00:01:47,380 --> 00:01:50,650 So this is the unit so stay off the name. 21 00:01:50,830 --> 00:01:55,010 And this is used to change the state of the name. 22 00:01:55,030 --> 00:01:58,920 So here we we will not use the filter again. 23 00:01:58,990 --> 00:02:04,920 We will use this state which is name. 24 00:02:04,960 --> 00:02:11,680 Now you see the name will become Ellen Smith in order to change the state we have to create a functions 25 00:02:12,190 --> 00:02:19,000 to change the name. 26 00:02:19,000 --> 00:02:22,510 And here we will use a set name. 27 00:02:24,190 --> 00:02:27,820 And for example we changed to Michael Coltrane 28 00:02:32,140 --> 00:02:43,820 and that add a button we use on Craig and then we parse the function here a changed name handler and 29 00:02:43,820 --> 00:02:47,160 then we create safe. 30 00:02:47,160 --> 00:02:53,010 So now when you take the change name it will become Michael change at the user name. 31 00:02:53,010 --> 00:02:56,780 So this is how to use the state and how to change the state.