Skip to content

Commit e9e23ba

Browse files
committed
chore: update readme
1 parent fd31426 commit e9e23ba

2 files changed

Lines changed: 16 additions & 64 deletions

File tree

‎README.md‎

Lines changed: 15 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,15 @@
77
<a title="GitHub License" href="https://github.com/bdlukaa/fluent_ui/blob/master/LICENSE">
88
<img src="https://img.shields.io/github/license/bdlukaa/fluent_ui?style=flat-square&color=f12253" />
99
</a>
10-
<a title="Made with Windows Design" href="https://github.com/bdlukaa/fluent_ui">
11-
<img src="https://img.shields.io/badge/fluent-design-blue?style=flat-square&color=gray&labelColor=0078D7">
12-
</a>
13-
<a title="Web Example" href="https://bdlukaa.github.io/fluent_ui">
14-
<img src="https://img.shields.io/badge/documentation---?style=flat-square&color=e88d0c" />
15-
</a>
1610
</div>
1711
<div>
1812
<a title="Discord" href="https://discord.gg/674gpDQUVq">
1913
<img src="https://img.shields.io/discord/809528329337962516?style=flat-square&label=discord&color=7289da&logo=discord&logoColor=white" />
2014
</a>
21-
<a title="Patreon" href="https://www.patreon.com/bdlukaa">
22-
<img src="https://img.shields.io/badge/sponsor-Patreon-FF424D?style=flat-square" />
23-
</a>
2415
</div>
2516
<br/>
2617
<p>
27-
Design beautiful native Windows apps using <a href="https://flutter.dev">Flutter</a>
18+
Design beautiful native Windows apps using Flutter
2819
</p>
2920

3021
<p>
@@ -35,53 +26,28 @@
3526
</h3>
3627
</div>
3728

38-
<div align="center">
39-
<a href="https://bdlukaa.github.io/fluent_ui">
40-
<img src="https://raw.githubusercontent.com/bdlukaa/fluent_ui/master/images/example-showcase.png" />
41-
</a>
42-
</div>
43-
44-
---
45-
46-
### Content
47-
48-
- [Motivation and maintenance](#motivation-and-maintenance)
49-
- [Installation](#installation)
50-
- [Badge](#badge)
51-
- [Accent color](#accent-color)
52-
- [Localization](#localization)
53-
- [Contribution](#contribution)
54-
- [Contributing new localizations](#contributing-new-localizations)
55-
- [Acknowledgements](#acknowledgements)
56-
5729
## Motivation and maintenance
5830

5931
Since Flutter has stable Windows support, it's necessary to have support to its UI guidelines to build apps with fidelity, the same way it has support for Material and Cupertino.
6032
See [this](https://github.com/flutter/flutter/issues/46481) for more info on the offical fluent ui support
6133

6234
See also:
6335

64-
- [Material UI for Flutter](https://flutter.dev/docs/development/ui/widgets/material)
65-
- [Cupertino UI for Flutter](https://flutter.dev/docs/development/ui/widgets/cupertino)
36+
- [Material UI for Flutter](hhttps://docs.flutter.dev/ui/widgets/material)
37+
- [Cupertino UI for Flutter](https://docs.flutter.dev/ui/widgets/cupertino)
6638
- [MacOS UI for Flutter](https://github.com/GroovinChip/macos_ui)
6739

6840
---
6941

70-
This is an open-source package, which means that anyone can contribute to it. However, I, [bdlukaa](https://github.com/bdlukaa), am the only one actively maintaining it, so it may take some time to review and merge pull requests. If you want to support the project, you can [become a patron](https://www.patreon.com/bdlukaa):
71-
72-
<div align="center">
73-
<a title="Patreon" href="https://www.patreon.com/bdlukaa">
74-
<img src="https://img.shields.io/badge/sponsor-Patreon-FF424D?style=flat-square" />
75-
</a>
76-
</div>
42+
This is an open-source package, which means that anyone can contribute to it. However, I, [bdlukaa](https://github.com/bdlukaa), am the only one actively maintaining it, so it may take some time to review and merge pull requests. If you want to support the project, you can [sponsor me](https://github.com/sponsors/bdlukaa/).
7743

7844
## Installation
7945

8046
Add the package to your dependencies:
8147

8248
```yaml
8349
dependencies:
84-
fluent_ui: ^4.4.0
50+
fluent_ui: ^4.15.1
8551
```
8652
8753
<p align="center">OR</p>
@@ -96,26 +62,6 @@ Finally, run `dart pub get` to download the package.
9662

9763
Projects using this library should use the stable channel of Flutter
9864

99-
### Badge
100-
101-
Are you using this library on your app? You can use a badge to tell others:
102-
103-
<a title="Made with Windows Design" href="https://github.com/bdlukaa/fluent_ui">
104-
<img
105-
src="https://img.shields.io/badge/fluent-design-blue?style=flat-square&color=gray&labelColor=0078D7"
106-
>
107-
</a>
108-
109-
Add the following code to your `README.md` or to your website:
110-
111-
```html
112-
<a title="Made with Windows Design" href="https://github.com/bdlukaa/fluent_ui">
113-
<img
114-
src="https://img.shields.io/badge/fluent-design-blue?style=flat-square&color=gray&labelColor=0078D7"
115-
/>
116-
</a>
117-
```
118-
11965
---
12066

12167
### Accent color
@@ -130,13 +76,21 @@ FluentThemeData(
13076
)
13177
```
13278

133-
To use the system's accent color, you can use the plugin [system_theme](https://pub.dev/packages/system_theme) made by me :). It has support for (as of 21/01/2023) Android, Web, MacOS, Windows, Xbox and Linux (GTK 3+).
79+
To use the system's accent color, you can use the plugin [system_theme](https://pub.dev/packages/system_theme). It has support for the Android, iOS, Web, MacOS, Windows and Linux (GTK 3+) platforms.
13480

13581
```dart
13682
import 'package:system_theme/system_theme.dart';
13783
13884
FluentThemeData(
139-
accentColor: SystemTheme.accentColor.accent.toAccentColor(),
85+
accentColor: AccentColor.swatch({
86+
'darkest': SystemTheme.accentColor.darkest,
87+
'darker': SystemTheme.accentColor.darker,
88+
'dark': SystemTheme.accentColor.dark,
89+
'normal': SystemTheme.accentColor.accent,
90+
'light': SystemTheme.accentColor.light,
91+
'lighter': SystemTheme.accentColor.lighter,
92+
'lightest': SystemTheme.accentColor.lightest,
93+
}),
14094
)
14195
```
14296

‎example/lib/theme.dart‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ class AppTheme extends ChangeNotifier {
7575
}
7676

7777
AccentColor get systemAccentColor {
78-
if ((defaultTargetPlatform == TargetPlatform.windows ||
79-
defaultTargetPlatform == TargetPlatform.android) &&
80-
!kIsWeb) {
78+
if (defaultTargetPlatform.supportsAccentColor) {
8179
return AccentColor.swatch({
8280
'darkest': SystemTheme.accentColor.darkest,
8381
'darker': SystemTheme.accentColor.darker,

0 commit comments

Comments
 (0)