Skip to content

Instantly share code, notes, and snippets.

View rydmike's full-sized avatar

Rydmike rydmike

View GitHub Profile
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
const String demoTooltip = 'Share the selected files and folders\n'
'with other people on the network.';
// const String demoTooltip = 'Tooltip message ijklmnop ABC 123';
class MyApp extends StatefulWidget {
@override
@rydmike
rydmike / main.dart
Created November 24, 2020 12:37
Tooltip size test - For testing legibility of different sizes on different platforms
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@rydmike
rydmike / main.dart
Created November 20, 2020 14:22
Playground to demonstrate Plasma Issue in Simple animation and Liquid Studio
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:simple_animations/simple_animations.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key key}) : super(key: key);
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) => MaterialApp(
debugShowCheckedModeBanner: false,
home: MyHomePage(),
);
@rydmike
rydmike / main.dart
Created October 20, 2020 13:14
A const widget example/demo....
// MIT License
// Copyright 2020 Mike Rydstrom
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// MIT License
// Copyright 2020 Mike Rydstrom
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
@rydmike
rydmike / analysis_options.yaml
Last active March 20, 2025 19:21
RydMike lints v2.4.0 - Personal preferences and starting point for Dart & Flutter linter rules setup.
# RydMike LINTER Preferences v2.4.0
#
# Get this file here: https://gist.github.com/rydmike/fdb53ddd933c37d20e6f3188a936cd4c
#
# We include and activate all lint rules, later below we disable the not used or desired ones.
# You can find a list of all lint rules to put in your all_lint_rules.yaml file here:
# https://dart.dev/tools/linter-rules/all
#
# This version is updated for Flutter 3.29 and Dart 3.7.
#
@rydmike
rydmike / all_lint_rules.yaml
Last active June 28, 2024 11:04
List of ALL Dart & Flutter linter rules
linter:
rules:
- always_declare_return_types
- always_put_control_body_on_new_line
- always_put_required_named_parameters_first
- always_require_non_null_named_parameters
- always_specify_types
- always_use_package_imports
- annotate_overrides
- avoid_annotating_with_dynamic
@rydmike
rydmike / main.dart
Created September 30, 2020 17:56
Tooltip always shown with new API on web/desktop even if identical to icon label.
// Flutter code sample for BottomNavigationBar
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
/// This Widget is the main application widget.
class MyApp extends StatelessWidget {
static const String _title = 'Flutter Code Sample';
@rydmike
rydmike / main.dart
Created September 23, 2020 01:10
Flutter and Dart Web Release Mode Minified Runtime Type Issue
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(