hidden_logo 0.1.0 copy "hidden_logo: ^0.1.0" to clipboard
hidden_logo: ^0.1.0 copied to clipboard

Package that allows you to display hidden logo behind hardware barriers for iPhones

example/lib/main.dart

import 'package:example/dynamic_island_logo.dart';
import 'package:example/notch_logo.dart';
import 'package:flutter/cupertino.dart';
import 'package:hidden_logo/hidden_logo.dart';

void main() async {
  runApp(const App());
}

class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    return CupertinoApp(
      debugShowCheckedModeBanner: false,
      title: 'Notch logo example',
      builder: (context, child) {
        return HiddenLogo(
          body: child!,
          notchBuilder: (context, constraints) {
            return ExampleNotchBrandLogo(
              width: constraints.maxWidth,
              height: constraints.maxHeight,
            );
          },
          dynamicIslandBuilder: (context, constraints) {
            return ExampleDynamicIslandBrandLogo(
              width: constraints.maxWidth,
              height: constraints.maxHeight,
            );
          },
        );
      },
      home: const CupertinoPageScaffold(
        navigationBar: CupertinoNavigationBar(
          backgroundColor: CupertinoColors.black,
          middle: Text(
            'App Bar',
            style: TextStyle(color: CupertinoColors.white),
          ),
        ),
        child: SizedBox.shrink(),
      ),
    );
  }
}
18
likes
160
points
133
downloads

Publisher

unverified uploader

Weekly Downloads

Package that allows you to display hidden logo behind hardware barriers for iPhones

Repository (GitHub)
View/report issues

Topics

#widget #ui #logo #brand #dynamic-island

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

device_info_plus, flutter

More

Packages that depend on hidden_logo