Belajar Widget Center di Flutter

Dhe997

Center

Widget Center merupakan sebuah widget yang digunakan untuk membuat suatu widget berada pada posisi tengah. Penggunaan widget Center sangatlah simpel, yakni seperti berikut:



  1. Center(

  2.   child: Text('Text berada di tengah'),

  3. )





Widget Center hanya membutuhkan parameter child untuk membuat widget di dalamnya berada pada posisi tengah. Hasil dari Center seperti berikut:

202006151932318a112ea57acaab86e29c63c51b1a87ff.jpeg

Posting Komentar

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.