Skip to content

Instantly share code, notes, and snippets.

View beroso's full-sized avatar
🙃
We can work it out!

André Sousa beroso

🙃
We can work it out!
View GitHub Profile
@beroso
beroso / main.dart
Last active June 25, 2025 16:16
SliverList
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@beroso
beroso / main.dart
Last active August 31, 2022 05:06
Drawer with Navigator
import 'dart:math';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@beroso
beroso / Flutter ResponsiveDatatableSample.dart
Created March 25, 2022 05:18 — forked from naywin-programmer/Flutter ResponsiveDatatableSample.dart
To Create Responsive Datatable With Flutter Built-in Datatable
// Flutter Responsive Datatable
// Flutter Datatable Class: https://api.flutter.dev/flutter/material/DataTable-class.html
// Flutter code sample for DataTable
// This sample shows how to display a [DataTable] with three columns: name, age, and
// role. The columns are defined by three [DataColumn] objects. The table
// contains three rows of data for three example users, the data for which
// is defined by three [DataRow] objects.
//
@beroso
beroso / main.dart
Created July 18, 2020 18:34
Contador com BLoC
import 'package:flutter/material.dart';
import 'dart:async';
void main() => runApp(BlocApp());
class BlocApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter para Iniciantes - BLoC',
@beroso
beroso / main.dart
Created June 15, 2020 18:44 — forked from collinjackson/main.dart
PageView example with dots indicator
// Copyright 2017, the Flutter project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:math';
import 'package:flutter/material.dart';
void main() {
runApp(new MyApp());
}
@beroso
beroso / .htaccess
Created October 8, 2018 21:04 — forked from perguth/.htaccess
Apache reverse proxy `.htaccess` file eg. for NodeJS. @Uberspace
SetEnvIf Request_URI "^(.*)" PORT=65300
RewriteEngine On
RewriteBase /
# CORS
Header add Access-Control-Allow-Origin "*"
# HTTPS
RewriteCond %{HTTPS} !=on
@beroso
beroso / defaults.json
Created July 12, 2017 19:54 — forked from jferris/defaults.json
Chart.js defaults
{
"global": {
"responsive": true,
"responsiveAnimationDuration": 0,
"maintainAspectRatio": true,
"events": [
"mousemove",
"mouseout",
"click",
"touchstart",
@beroso
beroso / ClientScriptView.php
Created June 30, 2017 03:00
Yii2 View extension to highlight JavaScript code block and capture them with the registerJs function
<?php
namespace common\components;
/**
* ClientScriptView class file.
*
* @author Tsunu {@link http://www.yiiframework.com/forum/index.php/topic/24429-the-best-way-to-write-javascript/page__p__118436#entry118436}
* @author MGHollander {@link https://github.com/MGHollander}
* @version 1.1
*/