Last active
February 14, 2020 17:51
-
-
Save bhaskar-nair2/88bdb05f3d776b6a94c430fbd048e67f to your computer and use it in GitHub Desktop.
Flutter Neomorphic Button
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
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', | |
theme: ThemeData( | |
primarySwatch: Colors.blue, | |
), | |
home: Scaffold( | |
backgroundColor: Color.fromRGBO(231, 232, 234, 1), | |
body: Container( | |
padding: EdgeInsets.symmetric(horizontal: 25), | |
child: Column( | |
children: <Widget>[ | |
NeumorphicButton() | |
], | |
), | |
), | |
), | |
); | |
} | |
} | |
// Just copied and edited from my code whihc had a lot of stuff, edit it as you please all you need here is the backgroundColor of the scaffold.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment