family_bottom_sheet 0.0.1
family_bottom_sheet: ^0.0.1 copied to clipboard
A package for building smooth, customizable multi-page bottom sheets with seamless transitions — just like a Navigator, but inside a bottom sheet.
example/lib/main.dart
import 'package:family_bottom_sheet_example/presentation/home_screen.dart';
import 'package:family_bottom_sheet_example/theme/theme.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
SystemChrome.setSystemUIOverlayStyle(
const SystemUiOverlayStyle(
systemNavigationBarColor: Colors.transparent,
statusBarBrightness: Brightness.dark,
statusBarColor: Colors.transparent,
),
);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return ThemeModeNotifierProvider(
themeModeNotifier: ThemeModeNotifier(),
child: Builder(
builder: (context) {
return ValueListenableBuilder(
valueListenable: ThemeModeNotifierProvider.of(context),
builder: (context, themeMode, _) {
return MaterialApp(
title: 'Family Tray Animation',
themeMode: themeMode,
theme: AppTheme.lightTheme,
highContrastTheme: AppTheme.lightTheme,
darkTheme: AppTheme.darkTheme,
highContrastDarkTheme: AppTheme.darkTheme,
home: HomeScreen(),
);
},
);
},
),
);
}
}