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(),
            },
          );
        });
  }
}
153
likes
150
pub points
88%
popularity

Publisher

verified publishertheksp.online

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on super_cupertino_navigation_bar