flutter_toolbar 0.0.2 flutter_toolbar: ^0.0.2 copied to clipboard
A flutter package which display the library is a library with dynamic toolbars and beautiful animation ...
import 'package:example/constants.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_toolbar/flutter_toolbar.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark);
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
scaffoldBackgroundColor: Colors.white,
fontFamily: 'TitilliumWeb',
primarySwatch: Colors.pink,
brightness: Brightness.light,
appBarTheme: const AppBarTheme(
systemOverlayStyle: SystemUiOverlayStyle.dark,
),
),
home: Scaffold(
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20),
child: FlutterToolbar(
toolbarItems: Constants.toolbarItems,
),
),
),
),
);
}
}