hidden_logo 0.0.6 copy "hidden_logo: ^0.0.6" to clipboard
hidden_logo: ^0.0.6 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(middle: Text('App Bar')),
        child: SizedBox(),
      ),
    );
  }
}
11
likes
160
pub points
81%
popularity

Publisher

unverified uploader

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