Skip to content

Commit

Permalink
feat: remix - Foundational components (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias authored Jul 18, 2024
1 parent 1654eb1 commit 13d8b78
Show file tree
Hide file tree
Showing 208 changed files with 13,736 additions and 959 deletions.
92 changes: 0 additions & 92 deletions .all-contributorsrc

This file was deleted.

5 changes: 4 additions & 1 deletion .fvmrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"flavors": {
"prod": "stable",
"mincompat": "3.19.0"
}
},
"runPubGetOnSdkChanges": true,
"updateVscodeSettings": true,
"updateGitIgnore": false
}
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ node_modules

# FVM

# FVM Version Cache
.fvm/

.packages
.pub/
.dart_tool/
pubspec_overrides.yaml
pubspec.lock

# FVM Version Cache
.fvm/
8 changes: 4 additions & 4 deletions mix.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"name": "mix",
"path": "packages/mix"
},
{
"name": "root",
"path": "."
},
{
"name": "mix_generator",
"path": "packages/mix_generator"
Expand All @@ -17,8 +21,4 @@
"path": "packages/remix"
}
],
"settings": {},
"extensions": {
"recommendations": []
}
}
2 changes: 1 addition & 1 deletion packages/mix/lib/src/core/deprecation_notices.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// ignore_for_file: camel_case_types

import '../attributes/enum/enum_util.dart';
import '../core/internal/widget_state/widget_state.dart';
import '../specs/image/image_spec.dart';
import '../variants/widget_state_variant.dart';
import 'attribute.dart';
import 'internal/widget_state/widget_state.dart';

class InternalMixDeprecatedAnnotation extends Deprecated {
final String version;
Expand Down
4 changes: 4 additions & 0 deletions packages/mix/lib/src/theme/tokens/color_token.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ class ColorToken extends MixToken<Color> {
@override
Color resolve(BuildContext context) {
final themeValue = MixTheme.of(context).colors[this];

if (themeValue == null) {
// Look for maybe been a swatch token
}
assert(
themeValue != null,
'ColorToken $name is not defined in the theme',
Expand Down
30 changes: 30 additions & 0 deletions packages/remix/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
// 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": "Remix (debug mode)",
"cwd": "demo",
"request": "launch",
"type": "dart",
"deviceId": "macos"
},
{
"name": "Remix (profile mode)",
"cwd": "demo",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "Remix (release mode)",
"cwd": "demo",
"request": "launch",
"type": "dart",
"flutterMode": "release"
}
]
}
29 changes: 29 additions & 0 deletions packages/remix/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2022, Concepta
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
16 changes: 16 additions & 0 deletions packages/remix/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# remix_ui

A new Flutter project.

## Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)

For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
6 changes: 6 additions & 0 deletions packages/remix/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include: package:flutter_lints/flutter.yaml

linter:
rules:
library_private_types_in_public_api: false
non_constant_identifier_names: false
9 changes: 9 additions & 0 deletions packages/remix/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
targets:
$default:
builders:
mix_generator|spec:
generate_for:
- lib/**/*_spec.dart
mix_generator|dto:
generate_for:
- lib/**/*_dto.dart
43 changes: 43 additions & 0 deletions packages/remix/demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/

# Symbolication related
app.*.symbols

# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
45 changes: 45 additions & 0 deletions packages/remix/demo/.metadata
Original file line number Diff line number Diff line change
@@ -0,0 +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.

version:
revision: f468f3366c26a5092eb964a230ce7892fda8f2f8
channel: stable

project_type: app

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

# 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'
16 changes: 16 additions & 0 deletions packages/remix/demo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# demo

A new Flutter project.

## Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)

For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
28 changes: 28 additions & 0 deletions packages/remix/demo/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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.dev/lints.
#
# 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
Loading

0 comments on commit 13d8b78

Please sign in to comment.