使文本位于AppBar
的中心,而不是AppBar
的顶部.
要使文本稍微低一点对齐
appBar: AppBar(
backgroundColor: Colors.white,
title: const Text("Test", style:TextStyle(color: Colors.black)),
actions: [Text( formattedDate, style:TextStyle(color: Colors.black))
],
),