Skip to content

Instantly share code, notes, and snippets.

@jeanluc243
Last active June 30, 2020 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeanluc243/254fe77fdd547511211a08d7c7ef9654 to your computer and use it in GitHub Desktop.
Save jeanluc243/254fe77fdd547511211a08d7c7ef9654 to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:splashy/splashy.dart';
class Amazon extends StatelessWidget {
Future<Widget> customFunction() {
print("Background process");
return Future.value(AmazonHomePage());
}
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: true,
home: Splashy(
imagePath: "assets/amazon.jpg",
customFunction: customFunction(),
curve: Curves.linear,
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment