-
-
Save everaldo/6ec145591e02088a0ff525eccb361018 to your computer and use it in GitHub Desktop.
Revisions
-
erluxman created this gist
Apr 28, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,59 @@ import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, home: Scaffold( appBar: AppBar( title: const Text('Notched Rectangular Fab'), backgroundColor: Colors.indigo, ), floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, floatingActionButton: FloatingActionButton.extended( backgroundColor: Colors.pink, onPressed: () {}, icon: Icon(Icons.add), label: Text("Add TODO")), bottomNavigationBar: BottomAppBar( color: Colors.indigo, notchMargin: 6.0, shape: AutomaticNotchedShape( RoundedRectangleBorder(), StadiumBorder( side: BorderSide(), ), ), child: Padding( padding: const EdgeInsets.symmetric(horizontal: 8.0), child: new Row( mainAxisSize: MainAxisSize.max, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: <Widget>[ IconButton( icon: Icon( Icons.person_outline, color: Colors.white, ), onPressed: () {}, ), IconButton( icon: Icon( Icons.info_outline, color: Colors.white, ), onPressed: () {}, ), ], ), ), ), ), ); } }