Skip to content

Instantly share code, notes, and snippets.

Avatar

Pierre-Louis guidezpl

View GitHub Profile
@guidezpl
guidezpl / main.dart
Last active Nov 23, 2020
Cupertino widgets in MaterialApp
View main.dart
// 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/cupertino.dart';
void main() => runApp(MyApp());
@guidezpl
guidezpl / framework.dart
Created Jun 22, 2020
Modified Flutter framework.dart to print widget counts (generic version)
View framework.dart
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import 'dart:async';
import 'dart:collection';
import 'dart:developer';
@guidezpl
guidezpl / framework.dart
Created Jun 22, 2020
Modified Flutter framework.dart to print widget counts (web version with reset)
View framework.dart
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import 'dart:async';
import 'dart:collection';
import 'dart:developer';
@guidezpl
guidezpl / main.dart
Last active Jul 23, 2020
ListView.builder with pre-created items
View main.dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Material(
@guidezpl
guidezpl / main.dart
Last active Jul 23, 2020
ListView example
View main.dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Material(
@guidezpl
guidezpl / main.dart
Last active Jul 23, 2020
ListView.builder example
View main.dart
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Material(