daynightbanner 0.0.0-beta-1 daynightbanner: ^0.0.0-beta-1 copied to clipboard
Flutter DayNightBanner with Dynamic banner widget to indicate day or night mode.
import 'package:daynightbanner/daynightbanner.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(appBar: AppBar(title: const Text('24 Hour Gradient Colors')), body: DayNightBanner()),
);
}
}