LAYOUT OCH INTERAKTION
1
LAYOUT OCH INTERAKTION 1 Agenda Frgor Layout Android - - - PowerPoint PPT Presentation
LAYOUT OCH INTERAKTION 1 Agenda Frgor Layout Android - standard Flexbox Flutter Hantera interaktion Lyssnare Organisation Cohesion och Coupling Komplexa komponenter MVC ,MVP
1
3
layout
flex items)
17
18
19
code Your code Button/Widget
add_A_Listener(this) callback_function(Event)
20
button.setOnClickListener{ counter++ textView.text = "Click counter : $counter" } button.setOnClickListener(object: View.OnClickListener {
counter++ textView.text = "Click counter : $counter" v?.setBackgroundColor(Color.MAGENTA) } })
21
FlatButton( child: Text('I am FlatButton'),
print('You tapped on FlatButton'); }, ),
Flutter has multiple Button widgets
22
<Button
alert('You tapped the button!'); }} title="Press Me" /> Flutter has multiple Button widgets
the system/model/backend
23
24
25
26
27