September 2019
Beginner
512 pages
12h 52m
English
The usage of a platform widget is as simple as using an ordinary widget. Apart from the specific configuration previously provided for the iOS platform, there is nothing more needed. We just use it as a normal widget:
@override Widget build(BuildContext context) { return MaterialApp( home: Container( alignment: Alignment.center, color: Colors.red, child: SizedBox( height: 100, child: HandsOnTextView( text: "Text from Platform view", ), ), ), ); }
After that, the platform widget looks like any other widget:

Wrapping the platform ...
Read now
Unlock full access