开发Flutter项目中,在Android平台下让状态栏透明,如下配置:import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main () {
runApp(const MyApp());
/// 配置如下:
/// Android状态栏透明
if (Platform.isAndroid) {
SystemUiOverlayStyle systemUiOverlayStyle =
const Sys...
阅读全部