Created
May 24, 2022 09:42
-
-
Save PrasathRavichandran/c4fe53287882602f7c37fe4d2201d84e to your computer and use it in GitHub Desktop.
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 characters
import 'package:flutter/material.dart'; | |
import '../themes/constants.dart'; | |
class HomePage extends StatelessWidget { | |
const HomePage({Key? key}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: gradientEndColor, | |
body: Container( | |
decoration: BoxDecoration( | |
gradient: LinearGradient( | |
colors: [gradientStartColor, gradientEndColor], | |
begin: Alignment.topCenter, | |
end: Alignment.bottomCenter, | |
stops: const [0.1, 0.9])), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment