Skip to content

Instantly share code, notes, and snippets.

View fabrizzioRP's full-sized avatar
:octocat:
Hello :)

Fabrizzio Rosales fabrizzioRP

:octocat:
Hello :)
View GitHub Profile
@fabrizzioRP
fabrizzioRP / fadein_navigate.dart
Created February 2, 2022 21:59
Function Navigate FadeIn
Route navigateScreenFadeIn( BuildContext context , Widget screen ) =>
PageRouteBuilder(
pageBuilder : ( _ , __ , ___) => screen,
transitionDuration : const Duration(milliseconds: 300),
transitionBuilder : ( context , animation , _, child) =>
FadeTransition(
opacity : Tween<double>(begin : 0.0 , end : 1.0).animate( CurvedAnimation( parent : animation , curve : Curves.easeOut ) ),
child : child
),
);
@fabrizzioRP
fabrizzioRP / rectangle.dart
Last active December 23, 2021 23:28
Dart: Rectangle Container
final Widget rectangle = Container(
width : 150,
height : 70,
color : Colors.red,
child : Center(
child : Text('Rectangle'),
),
);