To center align the text in a Text widget, provide textAlign property with value TextAlign.center . Text( 'Hello World!', textAlign: TextAlign.center, ) ...
確定! 回上一頁