statusbar_util 1.0.1 copy "statusbar_util: ^1.0.1" to clipboard
statusbar_util: ^1.0.1 copied to clipboard

discontinued

A flutter plugin to set statusbar transparent.support android 4.4+ && ios.

example/lib/main.dart

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

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

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  StatusbarUtil.setTranslucent();
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

  @override
  void initState() {
    super.initState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: <Widget>[
            RaisedButton(
              child: Text('black'),
              onPressed: () {
                StatusbarUtil.setStatusBarFont(FontStyle.black);
              },
            ),
            RaisedButton(
              child: Text('white'),
              onPressed: () {
                StatusbarUtil.setStatusBarFont(FontStyle.white);
              },
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
30
pub points
0%
popularity

Publisher

verified publisherchavesgu.com

A flutter plugin to set statusbar transparent.support android 4.4+ && ios.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on statusbar_util