()

_CounterState

();

class

_CounterState

extends

State

Counter

int

_counter

@override

Widget

build

BuildContext

context

return

Center

child:

Container

child:

LayoutBuilder

builder:

BuildContext

context

BoxConstraints

constraints

return

_ResizingBox

TextButton

onPressed:

()

_counter

++

},

child:

Text

'Increment Counter'