Skip to content

Commit 38edac7

Browse files
committed
first commit
0 parents  commit 38edac7

File tree

561 files changed

+28054
-0
lines changed

Some content is hidden

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

561 files changed

+28054
-0
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### Example user template template
2+
### Example user template
3+
4+
# IntelliJ project files
5+
.idea
6+
.vscode
7+
*.iml
8+
out
9+
gen
10+
.vscode
11+
*.zip
12+
*/__MACOSX
13+
.DS_Store

.mason/bricks.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"piistech_core":"/Users/app/.mason-cache/hosted/registry.brickhub.dev/piistech_core_0.2.0+4","piistech_feature":"/Users/app/.mason-cache/hosted/registry.brickhub.dev/piistech_feature_0.2.0+5"}

.metadata

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "2663184aa79047d0a33a14a3b607954f8fdd8730"
8+
channel: "stable"
9+
10+
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
17+
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
18+
- platform: web
19+
create_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
20+
base_revision: 2663184aa79047d0a33a14a3b607954f8fdd8730
21+
22+
# User provided section
23+
24+
# List of Local paths (relative to this file) that should be
25+
# ignored by the migrate tool.
26+
#
27+
# Files that are not part of the templates will be ignored by default.
28+
unmanaged_files:
29+
- 'lib/main.dart'
30+
- 'ios/Runner.xcodeproj/project.pbxproj'

README.md

Lines changed: 336 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,336 @@
1+
# Screens
2+
3+
- Login
4+
- Dashboard
5+
- Call (Audio/Video)
6+
- People
7+
- User Profile
8+
- people Profile
9+
- Chat
10+
- Story
11+
12+
---
13+
14+
## Features
15+
16+
- Call
17+
- Chat
18+
- Active contacts/In-active contacts
19+
- Dashboard
20+
- Search
21+
- Login
22+
- Profile
23+
- Story
24+
- Settings
25+
- Conversations
26+
27+
---
28+
29+
## Flutter Installation Guide
30+
31+
Follow the steps below to install Flutter on your system:
32+
33+
## System Requirements
34+
35+
- **Operating System**:
36+
- Windows: Windows 7 or later (64-bit)
37+
- macOS: macOS 10.14 (Mojave) or later
38+
- Linux: Any recent 64-bit distribution
39+
40+
- **Disk Space**:
41+
- At least 1.64 GB of free disk space (excluding IDE/tools).
42+
43+
- **Tools**:
44+
- Git (to clone the Flutter repository).
45+
- For Windows: PowerShell 5.0 or newer, Git for Windows.
46+
47+
---
48+
49+
## Step 1: Download Flutter SDK
50+
51+
1. Visit the official [Flutter SDK download page](https://flutter.dev/docs/get-started/install) and download the appropriate SDK for your operating system:
52+
- [Windows](https://flutter.dev/docs/get-started/install/windows)
53+
- [macOS](https://flutter.dev/docs/get-started/install/macos)
54+
- [Linux](https://flutter.dev/docs/get-started/install/linux)
55+
56+
2. Extract the downloaded `.zip` file to a suitable location, for example:
57+
- **Windows**: `C:\src\flutter`
58+
- **macOS/Linux**: `$HOME/flutter`
59+
60+
---
61+
62+
## Step 2: Set Up Environment Variables
63+
64+
### Windows
65+
66+
1. Open **System Properties** > **Advanced** > **Environment Variables**.
67+
2. Under **User variables**, select the `Path` variable and click **Edit**.
68+
3. Add the `bin` folder path inside the Flutter directory:
69+
70+
```plaintext
71+
C:\src\flutter\bin
72+
73+
## macOS/Linux
74+
75+
- Open your terminal and edit the bash_profile or zshrc file
76+
77+
```plaintext
78+
79+
nano ~/.bash_profile # or ~/.zshrc
80+
81+
- Add the following line at the end of the file:
82+
83+
```plaintext
84+
export PATH="$PATH:`pwd`/flutter/bin"
85+
86+
- Save and close the file, then run
87+
88+
```plaintext
89+
source ~/.bash_profile # or source ~/.zshrc
90+
91+
## Step 3: Verify Installation
92+
93+
- Open your terminal or command prompt.
94+
95+
- Run the following command to check if Flutter is correctly installed
96+
97+
## Step 4: Install Android Studio (Optional)
98+
99+
For Android development, you’ll need to install Android Studio.
100+
101+
1. **Download and install Android Studio**.
102+
2. During installation, select the option to install:
103+
- Android SDK
104+
- Android SDK Platform-Tools
105+
- Android SDK Build-Tools
106+
3. Open Android Studio, go to **Settings > Plugins**, and install the **Flutter** and **Dart** plugins.
107+
4. Ensure that the Android SDK path is correctly set:
108+
- Go to **File > Project Structure > SDK Location** and set the Android SDK location.
109+
110+
## Step 5: Install Xcode (macOS only)
111+
112+
For iOS development, you’ll need to install Xcode.
113+
114+
1. **Download and install Xcode** from the Mac App Store.
115+
2. Open Xcode and agree to the terms of the license agreement.
116+
3. Install the necessary development tools by running the following command:
117+
118+
```bash
119+
sudo xcode-select --install
120+
121+
4. Ensure Xcode command-line tools are correctly installed
122+
123+
```plaintext
124+
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
125+
126+
## Step 6: Install Visual Studio Code (Optional)
127+
128+
If you prefer VS Code as your code editor:
129+
130+
1. **Download and install Visual Studio Code**.
131+
2. Open VS Code and go to the **Extensions** panel (**View > Extensions**).
132+
3. Install the **Flutter** and **Dart** extensions.
133+
134+
## Step 7: Create a New Flutter Project
135+
136+
Now that everything is set up, you can create a new Flutter project.
137+
138+
1. Open the terminal or command prompt.
139+
2. Run the following command to create a new project:
140+
141+
```bash
142+
flutter create my_app
143+
144+
3. Navigate to your project directory
145+
146+
```plaintext
147+
cd my_app
148+
149+
4. Run the project on an emulator or connected device
150+
151+
```plaintext
152+
flutter run
153+
154+
## References
155+
156+
- [Flutter Official Installation Guide](https://flutter.dev/docs/get-started/install)
157+
158+
## Project setup
159+
160+
## Step 1: Create Icons using Icon Kitchen
161+
162+
### 1. Go to icon.kitchen: Visit - [icon.kitchen](https://icon.kitchen/)
163+
164+
### 2. Upload the base image
165+
166+
- Upload a high-quality image (preferably 1024x1024 pixels) for your app icon.
167+
168+
### 3. Customize icons
169+
170+
- You can configure the icon appearance, padding, and background color as needed.
171+
Choose between "iOS", "Android", or both, depending on the platforms you want to target.
172+
173+
### 4. Download the assets
174+
175+
- Once the customization is done, click on the download button to get the icon files in a .zip format. The file will contain the icons for both iOS and Android in the correct sizes.
176+
177+
## Step 2: Replace Android Icons
178+
179+
## 1. Unzip the icon files: Extract the downloaded files
180+
181+
## 2. Locate the Android icons
182+
183+
## 3. In your Flutter project directory, navigate to the Android app icons path
184+
185+
- `android/app/src/main/res/`
186+
187+
## 3. Replace icon files
188+
189+
## 1. In the extracted folder, you will see various - subfolders like
190+
191+
- `mipmap-hdpi`
192+
- `mipmap-mdpi`
193+
- `mipmap-xhdpi`
194+
- `mipmap-xxhdpi`
195+
- `mipmap-xxxhdpi`
196+
197+
## 2. Copy the icon files from these folders and replace the corresponding ones in your Flutter project’s
198+
199+
- `res/ directory.`
200+
201+
## 4. Update AndroidManifest.xml (if necessary)
202+
203+
## Ensure that the correct launcher icon is referenced in your AndroidManifest.xml. This is usually located in
204+
205+
- `android/app/src/main/AndroidManifest.xml`
206+
Check for the following line:
207+
208+
<application</br>
209+
android:icon="@mipmap/ic_launcher" />
210+
211+
## If you used a different name for the icon, update the android:icon attribute accordingly
212+
213+
## Step 3: Replace iOS Icons
214+
215+
### 1. Locate the iOS icons
216+
217+
#### In your Flutter project, navigate to the iOS icons path
218+
219+
- `ios/Runner/Assets.xcassets/AppIcon.appiconset/`
220+
221+
### 2. Replace icon files
222+
223+
- In the extracted folder from icon.kitchen, you will find an AppIcon.appiconset folder for iOS.
224+
- Copy all files from this folder into your Flutter project’s ios/Runner/Assets.xcassets/AppIcon.appiconset/ directory, replacing any existing files.
225+
226+
### 3. Update -`Info.plist` (if necessary)
227+
228+
Ensure your `Info.plist` ***(found at ios/Runner/Info.plist)*** correctly points to your new icon set:
229+
230+
- `<key>CFBundleIconName</key>`
231+
- `<string>AppIcon</string>`
232+
233+
## Step 4: Clean and Rebuild the Project
234+
235+
### 1. Clean the project
236+
237+
- Run the following command to clean the project:
238+
`flutter clean`
239+
240+
### 2. Rebuild the project
241+
242+
- `flutter build apk`
243+
244+
#### For iOS: `flutter build ios`
245+
246+
## 3. Run the project
247+
248+
`flutter run`
249+
250+
## Splash Screen setup
251+
252+
To add or change a splash screen in a Flutter app, follow these steps for both **Android** and **iOS** platforms.
253+
254+
---
255+
256+
## Step 1: Install `flutter_native_splash` package
257+
258+
The easiest way to create a splash screen in Flutter is by using the `flutter_native_splash` package.
259+
260+
1. Add the `flutter_native_splash` package to your `pubspec.yaml` file:
261+
262+
```yaml
263+
dev_dependencies:
264+
flutter_native_splash: ^2.2.18
265+
```
266+
267+
2. Run the following command to install the package:
268+
269+
```bash
270+
flutter pub get
271+
```
272+
273+
---
274+
275+
## Step 2: Configure Splash Screen
276+
277+
Configure the splash screen by adding settings to your `pubspec.yaml` file under the `flutter_native_splash` section:
278+
279+
flutter_native_splash:
280+
color: "#ffffff" # Background color of the splash screen
281+
image: assets/splash.png # Path to your splash screen image
282+
android: true # Enable splash screen for Android
283+
ios: true # Enable splash screen for iOS
284+
web: false # Disable for web (optional)
285+
286+
## Step 3: Add Splash Screen Image
287+
288+
- Add your splash screen image to the assets folder of your project. If the folder doesn't exist, create it.
289+
290+
1. Place your image inside the assets/ folder:
291+
`assets/logo.png`
292+
2. Declare the asset in your `pubspec.yaml` file:
293+
294+
```plaintext
295+
flutter:
296+
assets:
297+
- assets/logo.png
298+
299+
## Step 4: Generate Splash Screen
300+
301+
Run the following command to generate the splash screen configuration for Android and iOS:
302+
303+
- `flutter pub run flutter_native_splash:create`
304+
305+
To remove any change :
306+
307+
- `flutter pub run flutter_native_splash:remove`
308+
309+
## Step 5: Testing the Splash Screen
310+
311+
Clean the project to ensure there’s no cache interference:
312+
`flutter clean && flutter run`
313+
314+
## References for splash screen
315+
316+
- [flutter_native_splash package](https://pub.dev/packages/flutter_native_splash)
317+
- [Official Flutter Splash Screen Documentation](https://docs.flutter.dev/development/ui/advanced/splash-screen)
318+
319+
## Reformat Size , Padding , Radius
320+
321+
1. To change any kind of dimension or padding or radius you can use the following code snippet:
322+
323+
- `core/shared/dimension.dart`
324+
325+
## Theme Change
326+
327+
1.To change theme colors you can use the following code snippet:
328+
329+
- `core/shared/theme/scheme.dart`
330+
331+
2.To toggle theme mode you can use the following code snippet:
332+
333+
- `core/shared/theme/theme_bloc.dart`
334+
- change theme type in `theme_state.dart`
335+
336+
- change enum named as `ThemeType{light,dark}`

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:flutter_lints/flutter.yaml

0 commit comments

Comments
 (0)