Skip to content

Instantly share code, notes, and snippets.

View leonino's full-sized avatar
🤩

Marcos Ribeiro leonino

🤩
  • Solutil Sistemas
  • Belém - Pará
View GitHub Profile
@leonino
leonino / main.dart
Last active October 12, 2023 15:24
Drawer Menu with Reatividade
// Copyright (c) 2019, the Dart 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 'package:flutter/material.dart';
import 'package:provider/provider.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@leonino
leonino / main.dart
Created January 19, 2023 00:52
Consumir  API Mock
import 'dart:convert';
void main() async {
final resultHttp = await Http.get("http://teste.com", filtro: "Maria");
final lista = json.decode(resultHttp)['data'] as List;
final contatos = lista.map((contato) => Contato.fromJson(contato)).toList();
contatos.forEach(print);
}
@leonino
leonino / main.dart
Last active August 11, 2023 17:00
ListView horizontal
// Copyright (c) 2019, the Dart 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 'package:flutter/material.dart';
import 'package:flutter/gestures.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@leonino
leonino / main.dart
Last active January 16, 2023 19:35
Login Page com Scroll
// Copyright (c) 2019, the Dart 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 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@leonino
leonino / main.dart
Last active October 12, 2023 15:36
Future Builder Example
// Copyright (c) 2019, the Dart 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 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@leonino
leonino / main.dart
Last active October 12, 2023 16:08
Stepper Sample
// Copyright (c) 2019, the Dart 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 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@leonino
leonino / main.dart
Created December 1, 2022 15:47
Counter example
// Copyright (c) 2019, the Dart 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 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
@leonino
leonino / main.dart
Last active February 27, 2023 20:13
Draw Menu
// Copyright (c) 2019, the Dart 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 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {