Skip to content

Commit d19702b

Browse files
authored
Merge pull request #183 from gluestack/development
v0.1.0-beta.1
2 parents 4a317b0 + 335d45b commit d19702b

File tree

330 files changed

+6794
-3962
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

330 files changed

+6794
-3962
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ build/
3131
.flutter-plugins-dependencies
3232
android/local.properties
3333
ios/
34-
34+
macos/

.pubignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 0.1.0-beta.1
2+
3+
- Removed Material dependency from all the components, built from Flutter core apis
4+
- New widgets: added Icon Button, Accordion
5+
- Updated example app with new widgets
6+
- Improved accessibility support
7+
- Internal refactor & code structurting
8+
- Bug Fixes
9+
110
## 0.0.1-alpha.5
211

312
- Added GS Stack
@@ -7,25 +16,25 @@
716

817
## 0.0.1-alpha.4
918

10-
- Add support to get custom JSON config for Gluestack Widgets.
11-
- Add storybook in example app.
19+
- Add support to get custom JSON config for Gluestack Widgets
20+
- Add storybook in example app
1221
- New widgets: added Flex, Fab
13-
- Internal refactor.
22+
- Internal refactor
1423
- Bugfixes
1524

1625
## 0.0.1-alpha.3
1726

1827
- Add `GluestackProvider`
19-
- Add support to set custom values for design tokens through GluestackProvider.
28+
- Add support to set custom values for design tokens through GluestackProvider
2029
- New widget: added Forms
21-
- Add responsiveness to existing widgets.
22-
- Update example app with new widgets.
30+
- Add responsiveness to existing widgets
31+
- Update example app with new widgets
2332

2433
## 0.0.1-alpha.2
2534

26-
- Remove provider dependency from package.
27-
- Update example to manage light and dark theme.
35+
- Remove provider dependency from package
36+
- Update example to manage light and dark theme
2837

2938
## 0.0.1-alpha.1
3039

31-
- Initial alpha release.
40+
- Initial alpha release

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# gluestack-ui-flutter (alpha)
1+
# gluestack-ui-flutter (beta)
22

33
**gluestack-ui-flutter** is a universal UI library that provides optionally styled and accessible widgets. These widgets are designed for easy integration into applications developed with Flutter.
44

@@ -18,7 +18,7 @@ Here are few helpful links to give you an idea of what gluestack-ui-flutter is c
1818

1919
To keep track of latest developments in gluestack-ui-flutter you can refer to this link: https://github.com/gluestack/gluestack-ui-flutter/tree/feature/core-widgets.
2020

21-
Documentation: https://flutter.gluestack.io/
21+
_We are inspired from gluestack-ui to create gluestack-ui-flutter. Flutter documentation is in progress._
2222

2323
## Features
2424

@@ -44,7 +44,7 @@ Add the package to your dependencies:
4444

4545
```yaml
4646
dependencies:
47-
gluestack_ui: 0.0.1-alpha.5
47+
gluestack_ui: 0.1.0-beta.1
4848
```
4949
5050
OR
@@ -156,18 +156,24 @@ GluestackProvider(
156156
)
157157
```
158158

159-
## Future Scope
159+
## Performance
160+
161+
We performed performance benchmark after taking average of 10 samples from our [KitchenSink app](https://kitchensink-23184.web.app/) after using both GlueStack Material and GlueStack Non-Material components and we're happy to share the following result with you.
160162

161-
- **Omitting Material Dependency:** Developers can tailor the UI components to fit the exact needs and aesthetics of their applications without being restricted to Material Design standards. From performance improvement respective, by building a system independent of Material Design, you might optimize performance, especially for applications that require lightweight and fast-loading interfaces.
163+
<img src='assets/performance_graph_1.svg' width='2400'>
164+
165+
## Future Scope
162166

163167
- **Enhanced Widget Configuration:** The widgets will be designed in a modular fashion, allowing users to plug in different components or features as needed. This modular approach enables more complex and varied widget compositions.With more control over the widget design, developers can create applications that offer a better user experience, tailored to their target audience.
164168

165169
- **Configurable Token System:** Design the token system to be scalable and customizable. Users should be able to add new tokens or modify existing ones to suit their project needs.
166170

171+
- **Adding New Widgets:** We are committed to implement more functional widgets in the future that would improve the user and the developer experience.
172+
167173
## Contributing
168174

169175
We welcome contributions from the community. If you'd like to contribute to `gluestack-ui-flutter`, please read our [contributing guide](./CONTRIBUTING.md) instructions on how to submit a pull request.
170176

171177
## License
172178

173-
Licensed under the MIT License, Copyright © 2023 GeekyAnts. See [LICENSE](./LICENSE) for more information.
179+
Licensed under the MIT License, Copyright © 2024 GeekyAnts. See [LICENSE](./LICENSE) for more information.

assets/performance_graph_1.svg

Lines changed: 1 addition & 0 deletions
Loading

example/lib/example/spinner_example.dart

Lines changed: 0 additions & 40 deletions
This file was deleted.

example/lib/home.dart

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import 'package:flutter/material.dart';
44
import 'package:flutter_riverpod/flutter_riverpod.dart';
55
import 'package:gluestack_ui/gluestack_ui.dart';
66
import 'package:gluestack_ui_example/providers/theme_provider/theme_provider.dart';
7-
import 'package:gluestack_ui_example/widgets/nav_button.dart';
7+
8+
import 'widgets/components/layout/nav_button.dart';
89
// import 'package:gluestack_ui_example/widgets/storybook_widgets/public.dart';
910

1011
class HomePage extends StatefulWidget {
@@ -17,8 +18,17 @@ class HomePage extends StatefulWidget {
1718
class _HomePageState extends State<HomePage> {
1819
@override
1920
Widget build(BuildContext context) {
21+
final theme = GSTheme.of(context);
2022
return Scaffold(
21-
appBar: AppBar(title: const Text('Gluestack UI examples')),
23+
backgroundColor: theme.scaffoldBackgroundColor,
24+
appBar: AppBar(
25+
backgroundColor: GSTheme.of(context).brightness == Brightness.dark
26+
? const Color(0xFF262626)
27+
: null,
28+
title: const GSText(
29+
text: 'Gluestack UI examples',
30+
),
31+
),
2232
body: SafeArea(
2333
child: SingleChildScrollView(
2434
child: GSCenter(
@@ -149,6 +159,20 @@ class _HomePageState extends State<HomePage> {
149159
title: "GS Scroll",
150160
routePath: "/example-scroll",
151161
),
162+
const NavButton(
163+
title: "GS Icon Button",
164+
routePath: "/example-icon-button",
165+
),
166+
const NavButton(
167+
title: "GS Accordion",
168+
routePath: "/example-accordion",
169+
),
170+
171+
// // ===== Internal Testing Widgets =====
172+
// const NavButton(
173+
// title: "GS Color Test (Internal)",
174+
// routePath: "/internal-color-test",
175+
// ),
152176

153177
// Preview screens are present to link Docs website to these storybook pages through iframe.
154178
// No need to show these pages separately in example app.
@@ -168,7 +192,7 @@ class _HomePageState extends State<HomePage> {
168192
return FloatingActionButton(
169193
onPressed: ref.read(toggleThemeProvider.notifier).toggleThemeMode,
170194
child: Icon(
171-
Theme.of(context).brightness == Brightness.dark
195+
GSTheme.of(context).brightness == Brightness.dark
172196
? Icons.light_mode
173197
: Icons.dark_mode,
174198
),

example/lib/kitchensink_gluestack_example/.firebase/hosting.YnVpbGQ.cache

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)