Я новичок в flutter и хотел бы создать панель приложения с двумя разными текстовыми значениями, см. Ниже:
So far, I have written the following code:
class HomePage extends StatelessWidget {
final double toolbarOpacity = 2.0;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar:
PreferredSize(
preferredSize: Size(double.infinity, 114),
child: AppBar(
centerTitle: false,
title: Text(
'My App',
style: TextStyle(
color: titleTextColor,
fontWeight: titleTextFontWeight,
fontFamily: titleFontFamily,
fontSize: titleFontSize),
),
backgroundColor: Color.fromRGBO(232, 232, 242, 1),
),
),
);
}
}
Which has given me the following results:
введите описание изображения здесь
Может ли кто-нибудь направить меня к материалу или помочь мне достичь желаемого результата?
Заранее спасибо.