Skip to content

Instantly share code, notes, and snippets.

View defro's full-sized avatar

Joël Gaujard defro

View GitHub Profile
@defro
defro / php-docker-ext
Created November 19, 2022 13:16 — forked from hoandang/php-docker-ext
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
import 'package:flutter/material.dart';
class LifeCycle extends StatefulWidget {
// 1 - createState(): When the Framework is instructed to build a StatefulWidget, it immediately calls createState()
@override
_LifeCycleState createState() => _LifeCycleState();
}
class _LifeCycleState extends State<LifeCycle> {
// 2 - mounted is true: When createState creates your state class, a buildContext is assigned to that state.
### Keybase proof
I hereby claim:
* I am defro on github.
* I am defro (https://keybase.io/defro) on keybase.
* I have a public key ASAh99k56l8Y3AhFWMUt3CtqrG7bQrFSNAyCAyspQqXzHwo
To claim this, I am signing this object: