Created
November 7, 2022 07:33
-
-
Save chaudharydeepanshu/3ed7fbff6e71060d229af942baa0771b to your computer and use it in GitHub Desktop.
This file contains 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 characters
import 'package:flutter/material.dart'; | |
void main() => runApp(const MyApp()); | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
debugShowCheckedModeBanner: false, | |
theme: ThemeData(useMaterial3: true), | |
darkTheme: ThemeData.dark(useMaterial3: true), | |
themeMode: ThemeMode.system, | |
home: const MyHomePage(), | |
); | |
} | |
} | |
class MyHomePage extends StatelessWidget { | |
const MyHomePage({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: const Text("Flutter Demo"), | |
), | |
body: Align( | |
alignment: Alignment.bottomCenter, | |
child: Padding( | |
padding: const EdgeInsets.only(bottom: 30.0, left: 30, right: 30), | |
child: ClipRRect( | |
borderRadius: BorderRadius.circular(1000), | |
child: BottomAppBar( | |
child: SizedBox( | |
height: 70, | |
child: Row( | |
children: <Widget>[ | |
Expanded( | |
flex: 1, | |
child: FilledButton.tonal( | |
style: FilledButton.styleFrom( | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.circular(0)), | |
), | |
onPressed: () {}, | |
child: const SizedBox.expand( | |
child: Icon(Icons.rotate_left)), | |
), | |
), | |
const VerticalDivider(width: 1), | |
Expanded( | |
flex: 1, | |
child: FilledButton.tonal( | |
style: FilledButton.styleFrom( | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.circular(0)), | |
), | |
onPressed: () {}, | |
child: const SizedBox.expand( | |
child: Icon(Icons.rotate_right)), | |
), | |
), | |
const VerticalDivider(width: 1), | |
Expanded( | |
flex: 1, | |
child: FilledButton.tonal( | |
style: FilledButton.styleFrom( | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.circular(0)), | |
), | |
onPressed: () {}, | |
child: SizedBox.expand( | |
child: Icon(Icons.delete, | |
color: Theme.of(context).colorScheme.error)), | |
), | |
), | |
const VerticalDivider(width: 1), | |
Expanded( | |
flex: 2, | |
child: FilledButton( | |
style: FilledButton.styleFrom( | |
shape: RoundedRectangleBorder( | |
borderRadius: BorderRadius.circular(0)), | |
), | |
onPressed: () {}, | |
child: SizedBox.expand( | |
child: Center( | |
child: Row( | |
mainAxisSize: MainAxisSize.min, | |
children: const [ | |
Icon(Icons.check), | |
SizedBox(width: 10), | |
Text("Process"), | |
], | |
), | |
), | |
), | |
), | |
), | |
], | |
), | |
), | |
), | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment