Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 37 additions & 2 deletions .metadata
Original file line number Diff line number Diff line change
@@ -1,10 +1,45 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
# This file should be version controlled.

version:
revision: f4abaa0735eba4dfd8f33f73363911d63931fe03
revision: 62bd79521d8d007524e351747471ba66696fc2d4
channel: stable

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- platform: android
create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- platform: ios
create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- platform: linux
create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- platform: macos
create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- platform: web
create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
base_revision: 62bd79521d8d007524e351747471ba66696fc2d4
- platform: windows
create_revision: 62bd79521d8d007524e351747471ba66696fc2d4
base_revision: 62bd79521d8d007524e351747471ba66696fc2d4

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
25 changes: 25 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "FlutterScreens",
"request": "launch",
"type": "dart"
},
{
"name": "FlutterScreens (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "FlutterScreens (release mode)",
"request": "launch",
"type": "dart",
"flutterMode": "release"
}
]
}
29 changes: 29 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml

linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
26 changes: 14 additions & 12 deletions lib/buttons/simple_round_icon_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ class SimpleRoundIconButton extends StatelessWidget {
offset: Offset(-10.0, 0.0),
child: new Container(
padding: const EdgeInsets.all(5.0),
child: FlatButton(
shape: new RoundedRectangleBorder(
borderRadius:
new BorderRadius.circular(28.0)),
splashColor: Colors.white,
color: Colors.white,
child: TextButton(
style: TextButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius:
new BorderRadius.circular(28.0)),
backgroundColor: Colors.white,
),
child: Icon(
icon.icon,
color: iconColor == null
Expand Down Expand Up @@ -78,12 +79,13 @@ class SimpleRoundIconButton extends StatelessWidget {
offset: Offset(10.0, 0.0),
child: new Container(
padding: const EdgeInsets.all(5.0),
child: FlatButton(
shape: new RoundedRectangleBorder(
borderRadius:
new BorderRadius.circular(28.0)),
splashColor: Colors.white,
color: Colors.white,
child: TextButton(
style: TextButton.styleFrom(
shape: RoundedRectangleBorder(
borderRadius:
new BorderRadius.circular(28.0)),
backgroundColor: Colors.white,
),
child: Icon(
icon.icon,
color: iconColor == null
Expand Down
13 changes: 7 additions & 6 deletions lib/buttons/simple_round_only_icon_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,13 @@ class SimpleRoundOnlyIconButton extends StatelessWidget {
right: 5.0,
top: 10.0,
bottom: 10.0),
child: FlatButton(
shape: new RoundedRectangleBorder(
borderRadius:
new BorderRadius.circular(28.0)),
splashColor: Colors.white,
color: Colors.white,
child: TextButton(
style: TextButton.styleFrom(
shape: new RoundedRectangleBorder(
borderRadius:
new BorderRadius.circular(28.0)),
backgroundColor: Colors.white,
),
child: Icon(
icon!.icon,
color: this.iconColor,
Expand Down
6 changes: 6 additions & 0 deletions lib/experiments/graph.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ class _GraphState extends State<Graph> with SingleTickerProviderStateMixin {
controller.repeat();
}

@override
void dispose() {
controller.dispose();
super.dispose();
}

@override
Widget build(BuildContext context) {
return Center(
Expand Down
12 changes: 4 additions & 8 deletions lib/loaders/color_loader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,16 @@ class ColorLoader extends StatefulWidget {
ColorLoader({this.colors, this.duration});

@override
_ColorLoaderState createState() =>
_ColorLoaderState(this.colors!, this.duration!);
_ColorLoaderState createState() => _ColorLoaderState();
}

class _ColorLoaderState extends State<ColorLoader>
with SingleTickerProviderStateMixin {
final List<Color> colors;
final Duration duration;
late final List<Color> colors =
widget.colors ?? [Colors.red, Colors.green, Colors.blue, Colors.yellow];
late final Duration duration = widget.duration ?? Duration(seconds: 2);
late Timer timer;

_ColorLoaderState(this.colors, this.duration);

//noSuchMethod(Invocation i) => super.noSuchMethod(i);

List<ColorTween> tweenAnimations = [];
Expand All @@ -32,8 +30,6 @@ class _ColorLoaderState extends State<ColorLoader>
void initState() {
super.initState();



controller = new AnimationController(
vsync: this,
duration: duration,
Expand Down
47 changes: 47 additions & 0 deletions lib/loaders/load_view.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import 'package:flutter/material.dart';

import 'color_loader_4.dart';
import 'color_loader_5.dart';
import 'loaders.dart';

class LoaderWidgetPreview extends StatefulWidget {
const LoaderWidgetPreview({super.key});

@override
State<LoaderWidgetPreview> createState() => _LoaderWidgetPreviewState();
}

class _LoaderWidgetPreviewState extends State<LoaderWidgetPreview> {
final loaders = {
'ColorLoader': ColorLoader(),
'ColorLoader2': ColorLoader2(),
'ColorLoader3': ColorLoader3(),
'ColorLoader4': ColorLoader4(),
'ColorLoader5': ColorLoader5(),
};
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Loader Preview')),
body: ListView.builder(
itemCount: loaders.length,
itemBuilder: (context, index) {
final key = loaders.keys.elementAt(index);

return Padding(
padding: const EdgeInsets.all(8.0),
child: SizedBox(
height: 150,
child: Row(
children: [
Text(key),
Expanded(child: loaders[key]!),
],
),
),
);
},
),
);
}
}
7 changes: 7 additions & 0 deletions lib/loaders/loaders.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export 'color_loader.dart';
export 'color_loader_2.dart';
export 'color_loader_3.dart';

export 'dot_type.dart';
export 'flip_loader.dart';
export 'load_view.dart';
Loading