Skip to content

Instantly share code, notes, and snippets.

View johnwiese-ms's full-sized avatar

John Wiese johnwiese-ms

View GitHub Profile
@johnwiese-ms
johnwiese-ms / MyCoolSample.dart
Created April 30, 2025 16:29
My Sample I'd like help with
// This is my sample app
print('This is my sample app');
@johnwiese-ms
johnwiese-ms / revolving_positioned_list.dart
Created May 17, 2024 16:21
Shows a sample that places a bunch of positioned widgets in a stack, then allows you to randomly shuffle the order and see them redrawn
import 'dart:math';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@johnwiese-ms
johnwiese-ms / main.dart
Last active October 20, 2023 19:19
Space App Design Card
import 'package:flutter/material.dart';
import 'package:percent_indicator/circular_percent_indicator.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@johnwiese-ms
johnwiese-ms / main.dart
Last active May 22, 2023 20:56
Sample fixes
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
@johnwiese-ms
johnwiese-ms / main.dart
Created May 22, 2023 20:50
slick-jungle-9092
void main() {
for (int i = 0; i < 5; i++) {
print('hello ${i + 1}');
}
}
@johnwiese-ms
johnwiese-ms / main.dart
Last active July 18, 2023 14:46
Sports Card Sample
import 'package:flutter/material.dart';
void main() {
runApp(_MyApp());
}
class _MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@johnwiese-ms
johnwiese-ms / main.dart
Last active May 1, 2023 15:34
Sample Scroller
import 'package:flutter/material.dart';
void main() {
runApp(_MyApp());
}
class _MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
@johnwiese-ms
johnwiese-ms / main.dart
Last active April 25, 2023 16:57
TabView
// 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 StatefulWidget {
@johnwiese-ms
johnwiese-ms / main.dart
Created April 21, 2023 16:59
Interactive Bracket 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 'dart:ui' as ui;
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
@johnwiese-ms
johnwiese-ms / main.dart
Created April 20, 2023 14:29
Chat Bubble RenderObject
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
// ListenableBuilder requires Beta channel 3.10.0.0+ until it is released
void main() {
runApp(MyApp());
}