main方法:

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

void main() {
  SystemChrome.setSystemUIOverlayStyle(
      SystemUiOverlayStyle(statusBarColor: Colors.transparent),
  );
  ...
}
1
2
3
4
5
6
7
8
9

Colors.transparent即全透明

上次更新: 7/8/2020, 3:26:43 PM