sliding_panel_kit 0.1.0
sliding_panel_kit: ^0.1.0 copied to clipboard
A simple and lightweight solution for building sliding-up panel for Flutter with smooth drag gestures, snap-points, and built-in scroll coordination for scrollable content.
example/lib/main.dart
import 'package:example/app/router.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
final colorScheme = ColorScheme.fromSeed(
seedColor: Colors.lightBlue,
dynamicSchemeVariant: DynamicSchemeVariant.fidelity,
contrastLevel: -0.1,
);
return MaterialApp.router(
routerConfig: AppRouter().router,
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: colorScheme,
appBarTheme: AppBarTheme(
backgroundColor: colorScheme.primary,
foregroundColor: colorScheme.onPrimary,
elevation: 2.5,
),
),
);
}
}