Skip to content

Instantly share code, notes, and snippets.

View vinceramcesoliveros's full-sized avatar
🍣
Probably drooling about Kinilaw again.

Vince Ramces Oliveros vinceramcesoliveros

🍣
Probably drooling about Kinilaw again.
View GitHub Profile
import 'package:counter_app/main.dart' as app;
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
abstract class MyCounter {}
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
group("Increment group", () {
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:counter_app/main.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_test/flutter_test.dart';
class Counter {
int value = 0;
void increment() => value++;
void decrement() => value--;
}
void main() {
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
@vinceramcesoliveros
vinceramcesoliveros / main.dart
Created May 29, 2020 05:09
Pass function as arguments
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@vinceramcesoliveros
vinceramcesoliveros / main.dart
Created May 29, 2020 05:09
Pass function as arguments
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@vinceramcesoliveros
vinceramcesoliveros / main.dart
Last active April 19, 2020 04:08
Flutter Graphql basic query example
import 'package:flutter/material.dart';
import 'package:graphql_flutter/graphql_flutter.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
final HttpLink httpLink = HttpLink(
uri: 'https://countries.trevorblades.com/',
);
final ValueNotifier<GraphQLClient> client = ValueNotifier<GraphQLClient>(
GraphQLClient(
@vinceramcesoliveros
vinceramcesoliveros / main.dart
Created December 5, 2018 14:22
Stateful Animation
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
showPerformanceOverlay: true,
D:\PART_TIME_JOB\nutreat_demo>flutter run --verbose
[ +51 ms] executing: [D:\flutter-beta\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[ +163 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ +4 ms] origin/dev
[ ] executing: [D:\flutter-beta\flutter\] git rev-parse --abbrev-ref HEAD
[ +90 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] dev
[ ] executing: [D:\flutter-beta\flutter\] git ls-remote --get-url origin
[ +85 ms] Exit code 0 from: git ls-remote --get-url origin
[ +1 ms] https://github.com/flutter/flutter.git