Posts

Showing posts with the label widget

animated bottom navigation tried today

Image
  import 'package:flutter/material.dart' ; import 'package:animated_notch_bottom_bar/animated_notch_bottom_bar/animated_notch_bottom_bar.dart' ; void main () { runApp ( MyApp ()); } class MyApp extends StatelessWidget { @ override Widget build ( BuildContext context ) { return MaterialApp ( title : 'Flutter Bottom Nav' , debugShowCheckedModeBanner : false , theme : ThemeData ( brightness : Brightness . light , colorSchemeSeed : Colors . red , useMaterial3 : true , ), home : NotchedHomePage (), ); } } class NotchedHomePage extends StatefulWidget { const NotchedHomePage ({ super . key }); @ override State < NotchedHomePage > createState () => _NotchedHomePageState (); } class _NotchedHomePageState extends State < NotchedHomePage > { final _controller = NotchBottomBarController (); int _selectedIndex = 0 ; final List < String > _pa...