sliver_head_automatic_adsorption 1.0.8
sliver_head_automatic_adsorption: ^1.0.8 copied to clipboard
This is a custom sliver component that can automatically attach to the top
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:sliver_head_automatic_adsorption_example/sliver_example.dart';
void main() {
runApp(const MyApp());
SystemUiOverlayStyle systemUiOverlayStyle =
const SystemUiOverlayStyle(statusBarColor: Colors.transparent);
SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return const MaterialApp(home: SliverExample());
}
}
copied to clipboard