Widget

build

BuildContext

context

return

MaterialApp

title:

'Flutter Demo'

theme:

ThemeData

primarySwatch:

Colors

blue

),

home:

Counter

(),

);

class

Counter

extends

StatefulWidget

Counter

({

Key

key

})

super

key:

key

);

@override

_CounterState

createState

()

_CounterState

();