Skip to content

Instantly share code, notes, and snippets.

@PrasathRavichandran
Created May 24, 2022 09:42
Show Gist options
  • Save PrasathRavichandran/c4fe53287882602f7c37fe4d2201d84e to your computer and use it in GitHub Desktop.
Save PrasathRavichandran/c4fe53287882602f7c37fe4d2201d84e to your computer and use it in GitHub Desktop.
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