super_cupertino_navigation_bar 1.0.0-beta+1 super_cupertino_navigation_bar: ^1.0.0-beta+1 copied to clipboard
This is most desired plugin of Cupertino Navigation Bar With Search Field and Avatar
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 CupertinoApp(
debugShowCheckedModeBanner: false,
theme: const CupertinoThemeData(brightness: Brightness.dark),
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(),
},
);
}
}