gpt4 book ai didi

android - 使用 Flutter 更改 TaskDescription 栏的颜色

转载 作者:IT王子 更新时间:2023-10-29 07:02:54 27 4
gpt4 key购买 nike

有没有办法在 Flutter 应用中更改 TaskDescription 栏的颜色?

Here is a link到我正在努力实现的目标。

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
const MyApp({Key key}) : super(key: key);

@override
Widget build(BuildContext context) {

// Change the status bar color
FlutterStatusbarcolor.setStatusBarColor(Colors.white);

return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'SMS 2 Server',
color: Colors.white,
theme: ThemeData(
//brightness: Brightness.light,
primarySwatch: primaryWhite,

inputDecorationTheme: InputDecorationTheme(

)
),
home: HomePage(),
);
}
}

最佳答案

你可以这样做

Scaffold(
appBar: new AppBar(
backgroundColor: new Color(Color you want),
),
);

  theme: ThemeData(
primaryColor: YourExpected Color,
)

关于android - 使用 Flutter 更改 TaskDescription 栏的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56649575/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com