Skip to content

Commit cb6d4c9

Browse files
committed
Merge branch 'stable' of https://github.com/Shreemanarjun/VelocityX into stable
2 parents c8a82df + 79178cb commit cb6d4c9

File tree

243 files changed

+3181
-7255
lines changed

Some content is hidden

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

243 files changed

+3181
-7255
lines changed

.github/workflows/test-example.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Test Example App
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
concurrency:
10+
group: 'test-example-app'
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: subosito/flutter-action@v2
15+
with:
16+
cache: true
17+
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:'
18+
- run: dart pub global activate melos
19+
- run: cd example && melos all

.vscode/settings.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
{}
1+
{
2+
"cSpell.words": [
3+
"autofocus",
4+
"dartpad",
5+
"Kumar",
6+
"Pawan"
7+
],
8+
"dart.flutterSdkPath": "/Users/pawankumar/.puro/envs/stable/flutter",
9+
"dart.sdkPath": "/Users/pawankumar/.puro/envs/stable/flutter/bin/cache/dart-sdk"
10+
}

CHANGELOG.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
## [4.3.0] -
1+
## [4.3.0] - Jan 23, 2025
22

3-
- Breaking changes for intl and Flutter 3.27 migration fixes
3+
- Flutter 3.27 compatibility added
4+
- Bug fixes and improvements
45

6+
## [4.2.1] - May 27, 2024
57

6-
## [4.1.3] -
8+
- WidgetState reverted back to MaterialState for compatibility with Flutter <3.22
79

8-
- Flutter 3.27 migration fixes
10+
## [4.2.0] - May 21, 2024
911

12+
- Flutter 3.22 support
1013

1114
## [4.1.2] - Nov 23, 2023
1215

analysis_options.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
analyzer:
2+
errors:
3+
unintended_html_in_doc_comment: ignore
14
include: package:flutter_lints/flutter.yaml
25

36
linter:

example/.firebase/hosting.YnVpbGQvd2Vi.cache

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

example/.firebaserc

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

example/.gitignore

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.fvm
21
.fvm/flutter_sdk
2+
.fvm
33
# Miscellaneous
44
*.class
55
*.log
@@ -10,7 +10,6 @@
1010
.buildlog/
1111
.history
1212
.svn/
13-
build
1413

1514
# IntelliJ related
1615
*.iml
@@ -31,15 +30,48 @@ build
3130
.packages
3231
.pub-cache/
3332
.pub/
34-
/build/
35-
36-
# Web related
33+
build/
3734

38-
# Symbolication related
39-
app.*.symbols
35+
# Android related
36+
**/android/**/gradle-wrapper.jar
37+
**/android/.gradle
38+
**/android/captures/
39+
**/android/gradlew
40+
**/android/gradlew.bat
41+
**/android/local.properties
42+
**/android/**/GeneratedPluginRegistrant.java
4043

41-
# Obfuscation related
42-
app.*.map.json
44+
# iOS/XCode related
45+
**/ios/**/*.mode1v3
46+
**/ios/**/*.mode2v3
47+
**/ios/**/*.moved-aside
48+
**/ios/**/*.pbxuser
49+
**/ios/**/*.perspectivev3
50+
**/ios/**/*sync/
51+
**/ios/**/.sconsign.dblite
52+
**/ios/**/.tags*
53+
**/ios/**/.vagrant/
54+
**/ios/**/DerivedData/
55+
**/ios/**/Icon?
56+
**/ios/**/Pods/
57+
**/ios/**/.symlinks/
58+
**/ios/**/profile
59+
**/ios/**/xcuserdata
60+
**/ios/.generated/
61+
**/ios/Flutter/App.framework
62+
**/ios/Flutter/Flutter.framework
63+
**/ios/Flutter/Flutter.podspec
64+
**/ios/Flutter/Generated.xcconfig
65+
**/ios/Flutter/app.flx
66+
**/ios/Flutter/app.zip
67+
**/ios/Flutter/flutter_assets/
68+
**/ios/Flutter/flutter_export_environment.sh
69+
**/ios/ServiceDefinitions.json
70+
**/ios/Runner/GeneratedPluginRegistrant.*
4371

4472
# Exceptions to above rules.
73+
!**/ios/**/default.mode1v3
74+
!**/ios/**/default.mode2v3
75+
!**/ios/**/default.pbxuser
76+
!**/ios/**/default.perspectivev3
4577
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

example/.metadata

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

example/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM dart:latest
2+
3+
ARG FLUTTER_CHANNEL=stable
4+
5+
ENV FLUTTER_GIT_URL=https://github.com/flutter/flutter.git
6+
ENV FLUTTER_HOME=/flutter
7+
ENV PATH="$PATH:$FLUTTER_HOME/bin"
8+
9+
# Clone and configure Flutter
10+
RUN git clone $FLUTTER_GIT_URL $FLUTTER_HOME -b $FLUTTER_CHANNEL --depth 1 \
11+
&& flutter config --enable-web
12+
13+
# activate melos
14+
RUN dart pub global activate melos
15+
16+
WORKDIR /app
17+
18+
COPY . .
19+
20+
CMD ["bash", "-c"]

example/README.md

Lines changed: 49 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,55 @@
1-
# example
1+
# VelocityX Example Application
22

3-
A new Flutter project.
3+
Welcome to the VelocityX example application. This application is designed to showcase the capabilities of the VelocityX library, a minimalist Flutter framework that helps you build applications rapidly. It uses VelocityX for state management (VxState), UI extensions, and more.
44

5-
## Getting Started
5+
## Application Overview
66

7-
This project is a starting point for a Flutter application.
7+
The application is a simple user management system. It uses `VxState` for state management, which allows us to manage the state of our application in a predictable way. The UI is built using various VelocityX extensions, which provide a wide range of pre-styled widgets and utility functions for building responsive layouts.
88

9-
A few resources to get you started if this is your first Flutter project:
9+
## Running the Application
1010

11-
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12-
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
11+
This project uses Melos to manage scripts for building, testing, and analyzing the code. Here are some of the scripts you can run:
12+
13+
- **Build**: To build the application, run the following command in your terminal:
14+
15+
```sh
16+
melos run build
17+
```
18+
19+
- **Analyze**: To analyze the dart code:
20+
21+
```sh
22+
melos analyze
23+
```
24+
25+
- **Format**: To format the code:
26+
27+
```sh
28+
melos format
29+
```
30+
31+
- **Build**: To run flutter tests (including goldens test):
32+
33+
```sh
34+
melos test
35+
```
36+
37+
- **Run all** To run all of these (think CI machine, [build, format, analyze, test]):
38+
39+
```sh
40+
melos all
41+
```
42+
43+
## Application Structure
44+
45+
The application is structured as follows:
46+
47+
- lib/main.dart: This is the entry point of the application.
48+
- lib/data: This directory contains the data models and related code. For example, user.dart defines the User model.
49+
- lib/mutations: This directory contains the mutations, which are functions that encapsulate changes to the state of the application. For example, get_user.dart defines a function for fetching a user.
50+
- lib/pages: This directory contains the pages of the application. Each page is a separate widget. For example, home_page.dart defines the home page of the application.
51+
- lib/stores: This directory contains the stores, which manage the state of the application.
52+
- test: This directory contains the tests for the application.
53+
54+
We hope you find this example application useful as a starting point for your own VelocityX projects. Happy coding!
1355

14-
For help getting started with Flutter, view our
15-
[online documentation](https://flutter.dev/docs), which offers tutorials,
16-
samples, guidance on mobile development, and a full API reference.

0 commit comments

Comments
 (0)