Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

升级到空安全版本 flutter v2.5.2 #43

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
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
79 changes: 79 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,84 @@
# 4.1.1

* suport dart 3.0

# 4.1.0

* suport dart 3.0

# 4.0.3

* 依赖升级

# 4.0.2

* 细节优化

# 4.0.1

* 修复步进器主题切换不一致的问题

# 4.0.0+2

* 多个细节优化

# 4.0.0+1

* 多个细节优化

# 4.0.0

* 多个细节优化

# 3.3.4

* bug 修复

# 3.3.3


* 移除步进器的`focusNode`属性
* 添加`focusNodeEvent`参数

# 3.3.2

* 步进器添加`focusNode`属性

# 3.3.1

* 步进器新增`valueInterceptor` 数量拦截器函数
* 步进器新增`logglevel` 日志等级属性

## 3.3.0

* 升级到flutter3.3.0
* 删除了3中按钮组件

## 3.0.4

* 修复步进器一处焦点问题

## 3.0.3

* bug 修复

## 3.0.2

* bug 修复

## 3.0.1

* 步进器优化

## 3.0.0
* 升级到flutter3.0

# Change Log

## 2.0.0

- 升级到空安全

## 0.9.2

- Adjust material design semantics
Expand Down
2 changes: 1 addition & 1 deletion README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ dependencies:
依赖安装完成后直接引入组件。

```dart
import 'package:flui/flui.dart';
import 'package:flui/flui_nullsafety.dart';

// in somewhere
FLAppBarTitle(
Expand Down
125 changes: 19 additions & 106 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,121 +1,34 @@
English | [简体中文](https://github.com/Rannie/flui/blob/master/README-zh_CN.md)

<br />
<p align="center">
<a href="https://flui.xin">
<img width="200" src="https://abtfun.oss-cn-beijing.aliyuncs.com/img/2019-12-18-Artboard.png">
</a>
<a href="https://pub.dev/packages/flui_nullsafety"><img src="https://badgen.net/badge/flui_nullsafety/v2.0.0/blue" /></a>
<a href="https://flutter.dev/docs/get-started/install/windows"><img src="https://badgen.net/badge/Flutter/v3.3.10/red" /></a>
</p>

<h1 align="center">FLUI</h1>

<div align="center">
<p>A powerful UI framework for Google Flutter <a href="https://github.com/Rannie/Rannie.github.io/raw/master/app-release-0-9-2.apk">Demo apk</a></p>


[![pub package](https://img.shields.io/pub/v/flui.svg)](https://pub.dev/packages/flui)
[![CI Status](https://github.com/rannie/flui/workflows/test/badge.svg)](https://github.com/Rannie/flui/actions)
[![Documentation](https://img.shields.io/badge/read_the-docs-2196f3.svg)](https://www.flui.xin/en/widgets/button.html)
[![GitHub stars](https://img.shields.io/github/stars/Rannie/flui)](https://github.com/Rannie/flui/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/Rannie/flui.svg)](https://github.com/Rannie/flui)
[![GitHub license](https://img.shields.io/github/license/Rannie/flui.svg)](https://github.com/Rannie/flui/blob/master/LICENSE)


<img src="https://raw.githubusercontent.com/Rannie/Rannie.github.io/master/images/2019-12-18-overview-2.png" />

</div>
插件已经上传到pub仓库: https://pub.dev/packages/flui_nullsafety

## Features

* A set of high-quality Flutter widgets out of the box
* Comprehensive usage examples and documentation
* Fine-grained non-stylized widgets for different types of applications
* Supports [Dark Mode](https://abtfun.oss-cn-beijing.aliyuncs.com/img/2019-12-27-dark_shots.png) and [RTL](https://abtfun.oss-cn-beijing.aliyuncs.com/img/2019-12-27-rtl_shots.png)
* Dynamic rendering module -- [Dynamic](https://www.flui.xin/en/dynamic.html)

## Compatibility

**FLUI** has good compatibility on multiple clients, and the framework will be developed based on Flutter Stable Channel.

Currently supports *v1.17.0* .

## Getting Started

#### Setup

```yaml
dependencies:
flui: 0.9.2
```

Then run `flutter pub get` to download the dependencies.

#### Usage

After the dependency installed, you can directly import the widget.
直接引入

```dart
import 'package:flui/flui.dart';

// in somewhere
FLAppBarTitle(
title: 'AppBar',
subtitle: '(subtitle)',
layout: FLAppBarTitleLayout.vertical,
showLoading: true
)
flui_nullsafety: ^2.0.0
```

## Widgets

- [Button](https://www.flui.xin/en/widgets/button.html)
- [Label](https://www.flui.xin/en/widgets/label.html)
- [Toast](https://www.flui.xin/en/widgets/toast.html)
- [Bubble](https://www.flui.xin/en/widgets/bubble.html)
- [Input](https://www.flui.xin/en/widgets/input.html)
- [Avatar](https://www.flui.xin/en/widgets/avatar.html)
- [Badge](https://www.flui.xin/en/widgets/badge.html)
- [Image](https://www.flui.xin/en/widgets/image.html)
- [CountStepper](https://www.flui.xin/en/widgets/counter.html)
- [AppBar](https://www.flui.xin/en/widgets/appbar.html)
- [NoticeBar](https://www.flui.xin/en/widgets/notice-bar.html)
- [Empty](https://www.flui.xin/en/widgets/empty.html)
- [Skeleton](https://www.flui.xin/en/widgets/skeleton.html)
- [BottomSheet](https://www.flui.xin/en/widgets/bottom-sheet.html)
- [List](https://www.flui.xin/en/widgets/list.html)
- [Theme](https://www.flui.xin/en/widgets/theme.html)
我只是把它升级到了空安全版本,如果有其他问题请到原作者仓库

## Dynamic
* 原仓库地址 [https://github.com/Rannie/flui](https://github.com/Rannie/flui)

![dynamic-post](https://abtfun.oss-cn-beijing.aliyuncs.com/img/2020-03-11-dynamic-poster-1.png)

**FLUI-Dynamic** is a dynamic rendering module that supports rendering widgets based on json strings or objects of a specified type. For more introduction and usage, please see [Dynamic](https://www.flui.xin/en/dynamic.html)

``` dart
Widget buildDynamicWidget() {
return FLDyContainer(
jsonObject: $JSON_STRING_OR_OBJECT,
placeholder: CircularProgressIndicator(
strokeWidth: 3.0,
valueColor: AlwaysStoppedAnimation(Theme.of(context).accentColor),
),
);
}
```
* UI文档地址[https://www.flui.xin/en/](https://www.flui.xin/en/)

## Contributing

Principles:

* Branches that submit new widgets should be named *'feature-'* + widget name. Fixing issues need to be prefixed with *'bugfix-'*
* The submitted widgets need to be general. If the widget is rare or not sure whether it needs to be added to **FLUI**, you can raise a [issue](https://github.com/Rannie/flui/issues) which starts with *\[feature\]* for discussion
* The API design of the new widget is as standard and readable as possible, following the naming and usage rules of Flutter's official widgets.
* Please comment above properties and methods how to use it so that I can add to the documentation and examples.
* Commit messages: prefix with `feat | fix | docs | style | refactor | perf | test | workflow | ci | chore | types:`.


## License

MIT License

编译环境
```bash
[√] Flutter (Channel stable, 2.5.2, on Microsoft Windows [Version 10.0.19042.1266], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.3)
[√] Android Studio (version 2020.3)
[√] IntelliJ IDEA Ultimate Edition (version 2021.2)
[√] VS Code (version 1.60.0)
[√] Connected device (4 available)

```
81 changes: 81 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
include: package:flutter_lints/flutter.yaml
analyzer:
errors:
todo: ignore
invalid_annotation_target: ignore
exclude:
- lib/generated
- lib/l10n
- lib/generated_plugin_registrant.dart
- "**/*.g.dart"
- "**/*.freezed.dart"

linter:
rules:
- camel_case_types
- camel_case_extensions
- library_names
- file_names
- library_prefixes
- curly_braces_in_flow_control_structures
- non_constant_identifier_names
- constant_identifier_names # prefer
- directives_ordering
# DOCUMENTATION
- slash_for_doc_comments
- package_api_docs # prefer
# - public_member_api_docs # prefer

# USAGE
- implementation_imports
- avoid_relative_lib_imports # prefer
- prefer_relative_imports # prefer
- prefer_adjacent_string_concatenation
- unnecessary_brace_in_string_interps # avoid
- prefer_iterable_whereType
- unnecessary_lambdas
- avoid_init_to_null
# - unnecessary_getters_setters
- unnecessary_this
- prefer_initializing_formals
- type_init_formals
- empty_constructor_bodies
- unnecessary_new
- unnecessary_const
- avoid_catching_errors
- use_rethrow_when_possible
- prefer_interpolation_to_compose_strings # prefer
- prefer_collection_literals
- prefer_function_declarations_over_variables

# DESIGN
- use_to_and_as_if_applicable # prefer
- one_member_abstracts # avoid
- prefer_final_fields # prefer
# - avoid_setters_without_getters
- avoid_private_typedef_functions # prefer
- hash_and_equals
- avoid_null_checks_in_equality_operators
- prefer_mixin
# - use_setters_to_change_properties
- type_annotate_public_apis # prefer
- prefer_generic_function_type_aliases

dart_code_metrics:
anti-patterns:
- long-method
- long-parameter-list
metrics:
cyclomatic-complexity: 20
maximum-nesting-level: 5
number-of-parameters: 4
source-lines-of-code: 50
metrics-exclude:
- test/**
rules:
- newline-before-return
- no-boolean-literal-compare
- no-empty-block
- prefer-trailing-comma
- prefer-conditional-expressions
- no-equal-then-else
1 change: 0 additions & 1 deletion example/.flutter-plugins-dependencies

This file was deleted.

61 changes: 0 additions & 61 deletions example/android/app/build.gradle

This file was deleted.

7 changes: 0 additions & 7 deletions example/android/app/src/debug/AndroidManifest.xml

This file was deleted.

Loading