super_cupertino_navigation_bar 1.1.3 copy "super_cupertino_navigation_bar: ^1.1.3" to clipboard
super_cupertino_navigation_bar: ^1.1.3 copied to clipboard

This is most desired plugin of Cupertino Navigation Bar With Search Field and Avatar

example/lib/main.dart

import 'package:example/general.dart';
import 'package:example/root_screen.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_localizations/flutter_localizations.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatefulWidget {
  const MainApp({super.key});

  @override
  State<MainApp> createState() => _MainAppState();
}

class _MainAppState extends State<MainApp> {
  @override
  Widget build(BuildContext context) {
    return ValueListenableBuilder<Brightness>(
        valueListenable: General.instance.notifier,
        builder: (_, mode, __) {
          return CupertinoApp(
            debugShowCheckedModeBanner: false,
            theme: CupertinoThemeData(brightness: mode),
            localizationsDelegates: const <LocalizationsDelegate<Object>>[
              // ... app-specific localization delegate(s) here
              GlobalMaterialLocalizations.delegate,
              GlobalWidgetsLocalizations.delegate,
            ],
            supportedLocales: const <Locale>[
              Locale('en', 'US'), // English
              Locale('he', 'IL'), // Hebrew
              // ... other locales the app supports
            ],
            routes: {
              '/': (context) => const RootScreen(),
            },
          );
        });
  }
}
218
likes
150
points
203
downloads

Documentation

API reference

Publisher

verified publishertheksp.online

Weekly Downloads

This is most desired plugin of Cupertino Navigation Bar With Search Field and Avatar

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on super_cupertino_navigation_bar