Skip to content

Instantly share code, notes, and snippets.

<?php
namespace App\Domains\Altix\Services;
use App\Domains\Altix\Models\Document;
use App\Domains\Altix\Models\DocumentTemplate;
use App\Domains\Altix\Models\Enums\DocumentTemplateType as DocumentTemplateTypeEnum;
use App\Domains\Altix\Models\Enums\DocumentTypeId;
use App\Domains\Altix\Models\Fund;
use App\Domains\Altix\Models\Investment;

Flutter Splash Screen for Android. The official way!

While implementing my current Flutter project splash screen, I came across some tutorials showing how to do that using a Flutter widget, which was kind of weird, being that official Flutter documentation says the default Flutter project, already includes a native View as splash screen that can be customized. From official docs:

Each Flutter experience in an app requires a few moments to initialize the Dart isolate that runs the code. This means a user momentarily sees a blank screen until Flutter renders its first frame. Flutter supports an improved user experience by displaying an Android View as a splash screen while Flutter initializes."

So if the home screen of your Flutter project is a fake splash screen with a timer(ugh), you end up with 2 splash screens, and one of them is just and empty view, which is a bad user expetience to say the least.

@nsilva
nsilva / node_nginx_ssl.md
Created February 7, 2020 18:57 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@nsilva
nsilva / node_nginx_ssl.md
Created February 7, 2020 18:57 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user