├── .github
└── workflows
│ └── debug_friend.yml
├── .gitignore
├── README.md
└── packages
├── debug_friend
├── .gitignore
├── .metadata
├── CHANGELOG.md
├── LICENSE
├── README.md
├── analysis_options.yaml
├── example
│ ├── .gitignore
│ ├── .metadata
│ ├── README.md
│ ├── android
│ │ ├── .gitignore
│ │ ├── app
│ │ │ ├── build.gradle
│ │ │ └── src
│ │ │ │ ├── debug
│ │ │ │ └── AndroidManifest.xml
│ │ │ │ ├── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── kotlin
│ │ │ │ │ └── com
│ │ │ │ │ │ └── example
│ │ │ │ │ │ └── example
│ │ │ │ │ │ └── MainActivity.kt
│ │ │ │ └── res
│ │ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ │ ├── values-night
│ │ │ │ │ └── styles.xml
│ │ │ │ │ └── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── profile
│ │ │ │ └── AndroidManifest.xml
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ └── gradle-wrapper.properties
│ │ └── settings.gradle
│ ├── ios
│ │ ├── .gitignore
│ │ ├── Flutter
│ │ │ ├── AppFrameworkInfo.plist
│ │ │ ├── Debug.xcconfig
│ │ │ └── Release.xcconfig
│ │ ├── Podfile
│ │ ├── Podfile.lock
│ │ ├── Runner.xcodeproj
│ │ │ ├── project.pbxproj
│ │ │ ├── project.xcworkspace
│ │ │ │ ├── contents.xcworkspacedata
│ │ │ │ └── xcshareddata
│ │ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ │ └── WorkspaceSettings.xcsettings
│ │ │ └── xcshareddata
│ │ │ │ └── xcschemes
│ │ │ │ └── Runner.xcscheme
│ │ ├── Runner.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ │ └── WorkspaceSettings.xcsettings
│ │ └── Runner
│ │ │ ├── AppDelegate.swift
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ │ └── LaunchImage.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchImage.png
│ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ └── README.md
│ │ │ ├── Base.lproj
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── Main.storyboard
│ │ │ ├── Info.plist
│ │ │ └── Runner-Bridging-Header.h
│ ├── lib
│ │ ├── extended_main.dart
│ │ ├── main.dart
│ │ └── utils
│ │ │ ├── iamge_manager.dart
│ │ │ └── repository
│ │ │ └── shared_repository.dart
│ ├── macos
│ │ ├── .gitignore
│ │ ├── Flutter
│ │ │ ├── Flutter-Debug.xcconfig
│ │ │ ├── Flutter-Release.xcconfig
│ │ │ └── GeneratedPluginRegistrant.swift
│ │ ├── Podfile
│ │ ├── Podfile.lock
│ │ ├── Runner.xcodeproj
│ │ │ ├── project.pbxproj
│ │ │ ├── project.xcworkspace
│ │ │ │ └── xcshareddata
│ │ │ │ │ └── IDEWorkspaceChecks.plist
│ │ │ └── xcshareddata
│ │ │ │ └── xcschemes
│ │ │ │ └── Runner.xcscheme
│ │ ├── Runner.xcworkspace
│ │ │ ├── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ └── IDEWorkspaceChecks.plist
│ │ └── Runner
│ │ │ ├── AppDelegate.swift
│ │ │ ├── Assets.xcassets
│ │ │ └── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── app_icon_1024.png
│ │ │ │ ├── app_icon_128.png
│ │ │ │ ├── app_icon_16.png
│ │ │ │ ├── app_icon_256.png
│ │ │ │ ├── app_icon_32.png
│ │ │ │ ├── app_icon_512.png
│ │ │ │ └── app_icon_64.png
│ │ │ ├── Base.lproj
│ │ │ └── MainMenu.xib
│ │ │ ├── Configs
│ │ │ ├── AppInfo.xcconfig
│ │ │ ├── Debug.xcconfig
│ │ │ ├── Release.xcconfig
│ │ │ └── Warnings.xcconfig
│ │ │ ├── DebugProfile.entitlements
│ │ │ ├── Info.plist
│ │ │ ├── MainFlutterWindow.swift
│ │ │ └── Release.entitlements
│ ├── pubspec.lock
│ ├── pubspec.yaml
│ ├── repo_files
│ │ ├── logo.svg
│ │ ├── preview.gif
│ │ ├── s1.jpg
│ │ ├── s2.jpg
│ │ ├── s3.jpg
│ │ └── s4.jpg
│ └── web
│ │ ├── favicon.png
│ │ ├── icons
│ │ ├── Icon-192.png
│ │ └── Icon-512.png
│ │ ├── index.html
│ │ └── manifest.json
├── lib
│ ├── debug_friend.dart
│ └── src
│ │ ├── services
│ │ └── file
│ │ │ ├── service.dart
│ │ │ └── src
│ │ │ ├── abstract_file_service.dart
│ │ │ ├── file_service.dart
│ │ │ └── src.dart
│ │ ├── src.dart
│ │ ├── theme
│ │ ├── defaults.dart
│ │ └── theme.dart
│ │ ├── utils
│ │ ├── bottom_sheet_manager.dart
│ │ ├── simulation_calculator.dart
│ │ ├── talker.dart
│ │ └── utils.dart
│ │ └── widgets
│ │ ├── action_card
│ │ └── action_card.dart
│ │ ├── action_headers
│ │ ├── action_headers.dart
│ │ └── common_action_header.dart
│ │ ├── actions
│ │ ├── actions.dart
│ │ ├── app_actions
│ │ │ ├── app_action_body.dart
│ │ │ ├── app_actions.dart
│ │ │ └── app_actions_controller.dart
│ │ ├── app_data
│ │ │ ├── app_data.dart
│ │ │ ├── app_data_body.dart
│ │ │ └── app_data_controller.dart
│ │ ├── app_info
│ │ │ ├── app_info.dart
│ │ │ ├── app_info_body.dart
│ │ │ ├── app_info_controller.dart
│ │ │ ├── device_info_body.dart
│ │ │ └── package_info_body.dart
│ │ ├── common_action_body.dart
│ │ └── custom_action_body.dart
│ │ ├── common
│ │ ├── common.dart
│ │ └── key_value_line.dart
│ │ ├── debug_friend.dart
│ │ ├── debug_friend_view.dart
│ │ ├── debug_menu.dart
│ │ └── widgets.dart
├── pubspec.lock
└── pubspec.yaml
└── flutter_admin
├── .gitignore
├── .metadata
├── CHANGELOG.md
├── LICENSE
├── README.md
├── analysis_options.yaml
├── lib
├── flutter_admin.dart
└── src
│ └── widgets
│ ├── flutter_admin_bar
│ └── flutter_admin_bar.dart
│ └── widgets.dart
└── pubspec.yaml
/.github/workflows/debug_friend.yml:
--------------------------------------------------------------------------------
1 | name: debug_friend
2 |
3 | on:
4 | push:
5 | paths:
6 | - "packages/debug_friend/lib/**"
7 | - "packages/debug_friend/test/**"
8 | - ".github/workflows/debug_friend.yaml"
9 |
10 | pull_request:
11 | paths:
12 | - "packages/debug_friend/lib/**"
13 | - "packages/debug_friend/test/**"
14 | - ".github/workflows/debug_friend.yaml"
15 |
16 | jobs:
17 | test:
18 | defaults:
19 | run:
20 | working-directory: packages/debug_friend
21 | name: Run flutter test and analyze
22 | runs-on: ubuntu-latest
23 | steps:
24 | - uses: actions/checkout@v3
25 | - uses: actions/setup-java@v3
26 | with:
27 | java-version: "12.x"
28 | distribution: 'zulu'
29 | - uses: subosito/flutter-action@v2
30 | with:
31 | channel: "stable"
32 |
33 | - name: Install Dependencies
34 | run: flutter pub get
35 |
36 | - name: Format
37 | run: flutter format --set-exit-if-changed .
38 |
39 | - name: Analyze
40 | run: flutter analyze --fatal-infos --fatal-warnings .
41 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .DS_Store
3 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |

3 |
Debug Friend
4 |
5 | Flutter debug helper widget with common and custom actions
6 |
7 | This helps you reduce the development and testing time of new features
8 |
9 | Show some ❤️ and star the repo to support the project!
10 |
11 |
12 |
13 | |  |  |  |  |  |
14 | | :------------: | :------------: | :------------: | :------------: | :------------: |
15 |
16 | ## Main features
17 |
18 | - Check device info & package info
19 | - Viewing and managing application cache
20 | - Flutter inspector features
21 | - Test your custom actions
22 |
23 | ## Quickstart
24 |
25 | Wrap your MaterialApp's home or builder widget in a DebugFriend.
26 |
27 | ```dart
28 | import 'package:debug_friend/debug_friend.dart';
29 | import 'package:flutter/material.dart';
30 |
31 | void main() {
32 | runApp(
33 | MaterialApp(
34 | home: DebugFriendView(
35 | builder: (context) {
36 | return const Scaffold(
37 | body: Text('Your app home widget'),
38 | );
39 | },
40 | ),
41 | ),
42 | );
43 | }
44 | ```
--------------------------------------------------------------------------------
/packages/debug_friend/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | .dart_tool/
26 | .flutter-plugins
27 | .flutter-plugins-dependencies
28 | .packages
29 | .pub-cache/
30 | .pub/
31 | build/
32 |
33 | # Android related
34 | **/android/**/gradle-wrapper.jar
35 | **/android/.gradle
36 | **/android/captures/
37 | **/android/gradlew
38 | **/android/gradlew.bat
39 | **/android/local.properties
40 | **/android/**/GeneratedPluginRegistrant.java
41 |
42 | # iOS/XCode related
43 | **/ios/**/*.mode1v3
44 | **/ios/**/*.mode2v3
45 | **/ios/**/*.moved-aside
46 | **/ios/**/*.pbxuser
47 | **/ios/**/*.perspectivev3
48 | **/ios/**/*sync/
49 | **/ios/**/.sconsign.dblite
50 | **/ios/**/.tags*
51 | **/ios/**/.vagrant/
52 | **/ios/**/DerivedData/
53 | **/ios/**/Icon?
54 | **/ios/**/Pods/
55 | **/ios/**/.symlinks/
56 | **/ios/**/profile
57 | **/ios/**/xcuserdata
58 | **/ios/.generated/
59 | **/ios/Flutter/App.framework
60 | **/ios/Flutter/Flutter.framework
61 | **/ios/Flutter/Flutter.podspec
62 | **/ios/Flutter/Generated.xcconfig
63 | **/ios/Flutter/ephemeral
64 | **/ios/Flutter/app.flx
65 | **/ios/Flutter/app.zip
66 | **/ios/Flutter/flutter_assets/
67 | **/ios/Flutter/flutter_export_environment.sh
68 | **/ios/ServiceDefinitions.json
69 | **/ios/Runner/GeneratedPluginRegistrant.*
70 |
71 | # Exceptions to above rules.
72 | !**/ios/**/default.mode1v3
73 | !**/ios/**/default.mode2v3
74 | !**/ios/**/default.pbxuser
75 | !**/ios/**/default.perspectivev3
76 |
--------------------------------------------------------------------------------
/packages/debug_friend/.metadata:
--------------------------------------------------------------------------------
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: f4abaa0735eba4dfd8f33f73363911d63931fe03
8 | channel: stable
9 |
10 | project_type: package
11 |
--------------------------------------------------------------------------------
/packages/debug_friend/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 1.0.0
2 | - **BREAKING**: Temporarily remove the ability to edit custom actions
3 | - **FEAT**: Upgrade UI and theming of elements
4 | - **FEAT**: Implement self widgets theme
5 | - **FEAT**: Add error handling via [talker](https://github.com/Frezyx/talker) for device app data interactions
6 | - **FIX**: Refactor app stored data list loading and interaction
7 | - **FEAT**: Refactor all actions interction to controllers
8 |
9 | ## 1.0.0-dev.2
10 | - **FIX**: README.md assets paths
11 |
12 | ## 1.0.0-dev.1
13 | - **BREAKING**: Temporarily remove the ability to edit custom actions
14 | - **FEAT**: Upgrade UI and theming of elements
15 | - **FEAT**: Implement self widgets theme
16 | - **FEAT**: Add error handling via [talker](https://github.com/Frezyx/talker) for device app data interactions
17 | - **FIX**: Refactor app stored data list loading and interaction
18 |
19 | ## 0.5.0
20 | - **FEAT**: Update package to Flutter 3.0.0 release
21 |
22 | Thanks for [MaximilianFlechtner](https://github.com/MaximilianFlechtner)
23 |
24 | ## 0.4.0
25 |
26 | - **FEAT**: Make debug friend button overlay of all app screens
27 |
28 | ## 0.3.0
29 |
30 | - **FIX**: Remove deprecated flutter fields
31 | - **UPDATE**: device_info -> device_info_plus
32 | - **UPDATE**: package_info_plus, path_provider versions
33 |
34 | ## 0.2.1
35 |
36 | - **FIX**: Update package logo
37 |
38 | ## 0.2.0
39 |
40 | - **FIX**: Migrate from package_info to package_info_plus
41 | - **FIX**: Fix analyser issues
42 |
43 | ## 0.1.0
44 |
45 | Initial package version
46 |
--------------------------------------------------------------------------------
/packages/debug_friend/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 Stanislav Ilin
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/debug_friend/README.md:
--------------------------------------------------------------------------------
1 | ../../README.md
--------------------------------------------------------------------------------
/packages/debug_friend/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:lint/analysis_options.yaml
2 | analyzer:
3 | exclude:
4 | - 'example/'
5 |
6 | linter:
7 | rules:
8 | sort_pub_dependencies: false
--------------------------------------------------------------------------------
/packages/debug_friend/example/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/.metadata:
--------------------------------------------------------------------------------
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: f4abaa0735eba4dfd8f33f73363911d63931fe03
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/README.md:
--------------------------------------------------------------------------------
1 | # example
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13 |
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.
17 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 31
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | defaultConfig {
36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37 | applicationId "com.example.example"
38 | minSdkVersion 16
39 | targetSdkVersion 30
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59 | }
60 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
13 |
17 |
21 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
37 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/src/main/kotlin/com/example/example/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.example
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.6.10'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/ephemeral/
22 | Flutter/app.flx
23 | Flutter/app.zip
24 | Flutter/flutter_assets/
25 | Flutter/flutter_export_environment.sh
26 | ServiceDefinitions.json
27 | Runner/GeneratedPluginRegistrant.*
28 |
29 | # Exceptions to above rules.
30 | !default.mode1v3
31 | !default.mode2v3
32 | !default.pbxuser
33 | !default.perspectivev3
34 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 11.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '11.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - device_info_plus (0.0.1):
3 | - Flutter
4 | - Flutter (1.0.0)
5 | - image_picker_ios (0.0.1):
6 | - Flutter
7 | - package_info_plus (0.4.5):
8 | - Flutter
9 | - path_provider_ios (0.0.1):
10 | - Flutter
11 | - shared_preferences_ios (0.0.1):
12 | - Flutter
13 |
14 | DEPENDENCIES:
15 | - device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
16 | - Flutter (from `Flutter`)
17 | - image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
18 | - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
19 | - path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
20 | - shared_preferences_ios (from `.symlinks/plugins/shared_preferences_ios/ios`)
21 |
22 | EXTERNAL SOURCES:
23 | device_info_plus:
24 | :path: ".symlinks/plugins/device_info_plus/ios"
25 | Flutter:
26 | :path: Flutter
27 | image_picker_ios:
28 | :path: ".symlinks/plugins/image_picker_ios/ios"
29 | package_info_plus:
30 | :path: ".symlinks/plugins/package_info_plus/ios"
31 | path_provider_ios:
32 | :path: ".symlinks/plugins/path_provider_ios/ios"
33 | shared_preferences_ios:
34 | :path: ".symlinks/plugins/shared_preferences_ios/ios"
35 |
36 | SPEC CHECKSUMS:
37 | device_info_plus: e5c5da33f982a436e103237c0c85f9031142abed
38 | Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
39 | image_picker_ios: b786a5dcf033a8336a657191401bfdf12017dabb
40 | package_info_plus: 6c92f08e1f853dc01228d6f553146438dafcd14e
41 | path_provider_ios: 7d7ce634493af4477d156294792024ec3485acd5
42 | shared_preferences_ios: 548a61f8053b9b8a49ac19c1ffbc8b92c50d68ad
43 |
44 | PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
45 |
46 | COCOAPODS: 1.11.3
47 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 62760AACF7B1D142B55BE864 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BE6D9FD6B97E98719E6E5D7F /* Pods_Runner.framework */; };
13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXCopyFilesBuildPhase section */
20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
21 | isa = PBXCopyFilesBuildPhase;
22 | buildActionMask = 2147483647;
23 | dstPath = "";
24 | dstSubfolderSpec = 10;
25 | files = (
26 | );
27 | name = "Embed Frameworks";
28 | runOnlyForDeploymentPostprocessing = 0;
29 | };
30 | /* End PBXCopyFilesBuildPhase section */
31 |
32 | /* Begin PBXFileReference section */
33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
35 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
36 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
37 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
38 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
39 | 85F5A4A810C526E95B8F736B /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
40 | 8BE67292005640FF37DA9A29 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
41 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
42 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
43 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
45 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
46 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
47 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
48 | A24D905AFBF09C46989808F4 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
49 | BE6D9FD6B97E98719E6E5D7F /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | 62760AACF7B1D142B55BE864 /* Pods_Runner.framework in Frameworks */,
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | /* End PBXFrameworksBuildPhase section */
62 |
63 | /* Begin PBXGroup section */
64 | 77B15E43E1B3A17AD67A265F /* Pods */ = {
65 | isa = PBXGroup;
66 | children = (
67 | 8BE67292005640FF37DA9A29 /* Pods-Runner.debug.xcconfig */,
68 | 85F5A4A810C526E95B8F736B /* Pods-Runner.release.xcconfig */,
69 | A24D905AFBF09C46989808F4 /* Pods-Runner.profile.xcconfig */,
70 | );
71 | name = Pods;
72 | path = Pods;
73 | sourceTree = "";
74 | };
75 | 93078D6E519205C4FCCB1E10 /* Frameworks */ = {
76 | isa = PBXGroup;
77 | children = (
78 | BE6D9FD6B97E98719E6E5D7F /* Pods_Runner.framework */,
79 | );
80 | name = Frameworks;
81 | sourceTree = "";
82 | };
83 | 9740EEB11CF90186004384FC /* Flutter */ = {
84 | isa = PBXGroup;
85 | children = (
86 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
87 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
88 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
89 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
90 | );
91 | name = Flutter;
92 | sourceTree = "";
93 | };
94 | 97C146E51CF9000F007C117D = {
95 | isa = PBXGroup;
96 | children = (
97 | 9740EEB11CF90186004384FC /* Flutter */,
98 | 97C146F01CF9000F007C117D /* Runner */,
99 | 97C146EF1CF9000F007C117D /* Products */,
100 | 77B15E43E1B3A17AD67A265F /* Pods */,
101 | 93078D6E519205C4FCCB1E10 /* Frameworks */,
102 | );
103 | sourceTree = "";
104 | };
105 | 97C146EF1CF9000F007C117D /* Products */ = {
106 | isa = PBXGroup;
107 | children = (
108 | 97C146EE1CF9000F007C117D /* Runner.app */,
109 | );
110 | name = Products;
111 | sourceTree = "";
112 | };
113 | 97C146F01CF9000F007C117D /* Runner */ = {
114 | isa = PBXGroup;
115 | children = (
116 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
117 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
118 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
119 | 97C147021CF9000F007C117D /* Info.plist */,
120 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
121 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
122 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
123 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
124 | );
125 | path = Runner;
126 | sourceTree = "";
127 | };
128 | /* End PBXGroup section */
129 |
130 | /* Begin PBXNativeTarget section */
131 | 97C146ED1CF9000F007C117D /* Runner */ = {
132 | isa = PBXNativeTarget;
133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
134 | buildPhases = (
135 | 01683D9354F966BB089CEB5D /* [CP] Check Pods Manifest.lock */,
136 | 9740EEB61CF901F6004384FC /* Run Script */,
137 | 97C146EA1CF9000F007C117D /* Sources */,
138 | 97C146EB1CF9000F007C117D /* Frameworks */,
139 | 97C146EC1CF9000F007C117D /* Resources */,
140 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
142 | F7A725DCF36C6A7924F52F15 /* [CP] Embed Pods Frameworks */,
143 | );
144 | buildRules = (
145 | );
146 | dependencies = (
147 | );
148 | name = Runner;
149 | productName = Runner;
150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
151 | productType = "com.apple.product-type.application";
152 | };
153 | /* End PBXNativeTarget section */
154 |
155 | /* Begin PBXProject section */
156 | 97C146E61CF9000F007C117D /* Project object */ = {
157 | isa = PBXProject;
158 | attributes = {
159 | LastUpgradeCheck = 1300;
160 | ORGANIZATIONNAME = "";
161 | TargetAttributes = {
162 | 97C146ED1CF9000F007C117D = {
163 | CreatedOnToolsVersion = 7.3.1;
164 | LastSwiftMigration = 1100;
165 | };
166 | };
167 | };
168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
169 | compatibilityVersion = "Xcode 9.3";
170 | developmentRegion = en;
171 | hasScannedForEncodings = 0;
172 | knownRegions = (
173 | en,
174 | Base,
175 | );
176 | mainGroup = 97C146E51CF9000F007C117D;
177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
178 | projectDirPath = "";
179 | projectRoot = "";
180 | targets = (
181 | 97C146ED1CF9000F007C117D /* Runner */,
182 | );
183 | };
184 | /* End PBXProject section */
185 |
186 | /* Begin PBXResourcesBuildPhase section */
187 | 97C146EC1CF9000F007C117D /* Resources */ = {
188 | isa = PBXResourcesBuildPhase;
189 | buildActionMask = 2147483647;
190 | files = (
191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | };
198 | /* End PBXResourcesBuildPhase section */
199 |
200 | /* Begin PBXShellScriptBuildPhase section */
201 | 01683D9354F966BB089CEB5D /* [CP] Check Pods Manifest.lock */ = {
202 | isa = PBXShellScriptBuildPhase;
203 | buildActionMask = 2147483647;
204 | files = (
205 | );
206 | inputFileListPaths = (
207 | );
208 | inputPaths = (
209 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
210 | "${PODS_ROOT}/Manifest.lock",
211 | );
212 | name = "[CP] Check Pods Manifest.lock";
213 | outputFileListPaths = (
214 | );
215 | outputPaths = (
216 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
217 | );
218 | runOnlyForDeploymentPostprocessing = 0;
219 | shellPath = /bin/sh;
220 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
221 | showEnvVarsInLog = 0;
222 | };
223 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
224 | isa = PBXShellScriptBuildPhase;
225 | buildActionMask = 2147483647;
226 | files = (
227 | );
228 | inputPaths = (
229 | );
230 | name = "Thin Binary";
231 | outputPaths = (
232 | );
233 | runOnlyForDeploymentPostprocessing = 0;
234 | shellPath = /bin/sh;
235 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
236 | };
237 | 9740EEB61CF901F6004384FC /* Run Script */ = {
238 | isa = PBXShellScriptBuildPhase;
239 | buildActionMask = 2147483647;
240 | files = (
241 | );
242 | inputPaths = (
243 | );
244 | name = "Run Script";
245 | outputPaths = (
246 | );
247 | runOnlyForDeploymentPostprocessing = 0;
248 | shellPath = /bin/sh;
249 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
250 | };
251 | F7A725DCF36C6A7924F52F15 /* [CP] Embed Pods Frameworks */ = {
252 | isa = PBXShellScriptBuildPhase;
253 | buildActionMask = 2147483647;
254 | files = (
255 | );
256 | inputFileListPaths = (
257 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
258 | );
259 | name = "[CP] Embed Pods Frameworks";
260 | outputFileListPaths = (
261 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
262 | );
263 | runOnlyForDeploymentPostprocessing = 0;
264 | shellPath = /bin/sh;
265 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
266 | showEnvVarsInLog = 0;
267 | };
268 | /* End PBXShellScriptBuildPhase section */
269 |
270 | /* Begin PBXSourcesBuildPhase section */
271 | 97C146EA1CF9000F007C117D /* Sources */ = {
272 | isa = PBXSourcesBuildPhase;
273 | buildActionMask = 2147483647;
274 | files = (
275 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
276 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
277 | );
278 | runOnlyForDeploymentPostprocessing = 0;
279 | };
280 | /* End PBXSourcesBuildPhase section */
281 |
282 | /* Begin PBXVariantGroup section */
283 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
284 | isa = PBXVariantGroup;
285 | children = (
286 | 97C146FB1CF9000F007C117D /* Base */,
287 | );
288 | name = Main.storyboard;
289 | sourceTree = "";
290 | };
291 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
292 | isa = PBXVariantGroup;
293 | children = (
294 | 97C147001CF9000F007C117D /* Base */,
295 | );
296 | name = LaunchScreen.storyboard;
297 | sourceTree = "";
298 | };
299 | /* End PBXVariantGroup section */
300 |
301 | /* Begin XCBuildConfiguration section */
302 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
333 | ENABLE_NS_ASSERTIONS = NO;
334 | ENABLE_STRICT_OBJC_MSGSEND = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_NO_COMMON_BLOCKS = YES;
337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
338 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
339 | GCC_WARN_UNDECLARED_SELECTOR = YES;
340 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
341 | GCC_WARN_UNUSED_FUNCTION = YES;
342 | GCC_WARN_UNUSED_VARIABLE = YES;
343 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
344 | MTL_ENABLE_DEBUG_INFO = NO;
345 | SDKROOT = iphoneos;
346 | SUPPORTED_PLATFORMS = iphoneos;
347 | TARGETED_DEVICE_FAMILY = "1,2";
348 | VALIDATE_PRODUCT = YES;
349 | };
350 | name = Profile;
351 | };
352 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
353 | isa = XCBuildConfiguration;
354 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
355 | buildSettings = {
356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
357 | CLANG_ENABLE_MODULES = YES;
358 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
359 | ENABLE_BITCODE = NO;
360 | INFOPLIST_FILE = Runner/Info.plist;
361 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
362 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
363 | PRODUCT_NAME = "$(TARGET_NAME)";
364 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
365 | SWIFT_VERSION = 5.0;
366 | VERSIONING_SYSTEM = "apple-generic";
367 | };
368 | name = Profile;
369 | };
370 | 97C147031CF9000F007C117D /* Debug */ = {
371 | isa = XCBuildConfiguration;
372 | buildSettings = {
373 | ALWAYS_SEARCH_USER_PATHS = NO;
374 | CLANG_ANALYZER_NONNULL = YES;
375 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
376 | CLANG_CXX_LIBRARY = "libc++";
377 | CLANG_ENABLE_MODULES = YES;
378 | CLANG_ENABLE_OBJC_ARC = YES;
379 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
380 | CLANG_WARN_BOOL_CONVERSION = YES;
381 | CLANG_WARN_COMMA = YES;
382 | CLANG_WARN_CONSTANT_CONVERSION = YES;
383 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
385 | CLANG_WARN_EMPTY_BODY = YES;
386 | CLANG_WARN_ENUM_CONVERSION = YES;
387 | CLANG_WARN_INFINITE_RECURSION = YES;
388 | CLANG_WARN_INT_CONVERSION = YES;
389 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
390 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
391 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
392 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
393 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
394 | CLANG_WARN_STRICT_PROTOTYPES = YES;
395 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
396 | CLANG_WARN_UNREACHABLE_CODE = YES;
397 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
398 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
399 | COPY_PHASE_STRIP = NO;
400 | DEBUG_INFORMATION_FORMAT = dwarf;
401 | ENABLE_STRICT_OBJC_MSGSEND = YES;
402 | ENABLE_TESTABILITY = YES;
403 | GCC_C_LANGUAGE_STANDARD = gnu99;
404 | GCC_DYNAMIC_NO_PIC = NO;
405 | GCC_NO_COMMON_BLOCKS = YES;
406 | GCC_OPTIMIZATION_LEVEL = 0;
407 | GCC_PREPROCESSOR_DEFINITIONS = (
408 | "DEBUG=1",
409 | "$(inherited)",
410 | );
411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
413 | GCC_WARN_UNDECLARED_SELECTOR = YES;
414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
415 | GCC_WARN_UNUSED_FUNCTION = YES;
416 | GCC_WARN_UNUSED_VARIABLE = YES;
417 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
418 | MTL_ENABLE_DEBUG_INFO = YES;
419 | ONLY_ACTIVE_ARCH = YES;
420 | SDKROOT = iphoneos;
421 | TARGETED_DEVICE_FAMILY = "1,2";
422 | };
423 | name = Debug;
424 | };
425 | 97C147041CF9000F007C117D /* Release */ = {
426 | isa = XCBuildConfiguration;
427 | buildSettings = {
428 | ALWAYS_SEARCH_USER_PATHS = NO;
429 | CLANG_ANALYZER_NONNULL = YES;
430 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
431 | CLANG_CXX_LIBRARY = "libc++";
432 | CLANG_ENABLE_MODULES = YES;
433 | CLANG_ENABLE_OBJC_ARC = YES;
434 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
435 | CLANG_WARN_BOOL_CONVERSION = YES;
436 | CLANG_WARN_COMMA = YES;
437 | CLANG_WARN_CONSTANT_CONVERSION = YES;
438 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
439 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
440 | CLANG_WARN_EMPTY_BODY = YES;
441 | CLANG_WARN_ENUM_CONVERSION = YES;
442 | CLANG_WARN_INFINITE_RECURSION = YES;
443 | CLANG_WARN_INT_CONVERSION = YES;
444 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
445 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
446 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
447 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
448 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
449 | CLANG_WARN_STRICT_PROTOTYPES = YES;
450 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
451 | CLANG_WARN_UNREACHABLE_CODE = YES;
452 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
453 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
454 | COPY_PHASE_STRIP = NO;
455 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
456 | ENABLE_NS_ASSERTIONS = NO;
457 | ENABLE_STRICT_OBJC_MSGSEND = YES;
458 | GCC_C_LANGUAGE_STANDARD = gnu99;
459 | GCC_NO_COMMON_BLOCKS = YES;
460 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
461 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
462 | GCC_WARN_UNDECLARED_SELECTOR = YES;
463 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
464 | GCC_WARN_UNUSED_FUNCTION = YES;
465 | GCC_WARN_UNUSED_VARIABLE = YES;
466 | IPHONEOS_DEPLOYMENT_TARGET = 11.0;
467 | MTL_ENABLE_DEBUG_INFO = NO;
468 | SDKROOT = iphoneos;
469 | SUPPORTED_PLATFORMS = iphoneos;
470 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
471 | TARGETED_DEVICE_FAMILY = "1,2";
472 | VALIDATE_PRODUCT = YES;
473 | };
474 | name = Release;
475 | };
476 | 97C147061CF9000F007C117D /* Debug */ = {
477 | isa = XCBuildConfiguration;
478 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
479 | buildSettings = {
480 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
481 | CLANG_ENABLE_MODULES = YES;
482 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
483 | ENABLE_BITCODE = NO;
484 | INFOPLIST_FILE = Runner/Info.plist;
485 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
486 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
487 | PRODUCT_NAME = "$(TARGET_NAME)";
488 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
489 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
490 | SWIFT_VERSION = 5.0;
491 | VERSIONING_SYSTEM = "apple-generic";
492 | };
493 | name = Debug;
494 | };
495 | 97C147071CF9000F007C117D /* Release */ = {
496 | isa = XCBuildConfiguration;
497 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
498 | buildSettings = {
499 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
500 | CLANG_ENABLE_MODULES = YES;
501 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
502 | ENABLE_BITCODE = NO;
503 | INFOPLIST_FILE = Runner/Info.plist;
504 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
505 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
506 | PRODUCT_NAME = "$(TARGET_NAME)";
507 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
508 | SWIFT_VERSION = 5.0;
509 | VERSIONING_SYSTEM = "apple-generic";
510 | };
511 | name = Release;
512 | };
513 | /* End XCBuildConfiguration section */
514 |
515 | /* Begin XCConfigurationList section */
516 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
517 | isa = XCConfigurationList;
518 | buildConfigurations = (
519 | 97C147031CF9000F007C117D /* Debug */,
520 | 97C147041CF9000F007C117D /* Release */,
521 | 249021D3217E4FDB00AE95B9 /* Profile */,
522 | );
523 | defaultConfigurationIsVisible = 0;
524 | defaultConfigurationName = Release;
525 | };
526 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
527 | isa = XCConfigurationList;
528 | buildConfigurations = (
529 | 97C147061CF9000F007C117D /* Debug */,
530 | 97C147071CF9000F007C117D /* Release */,
531 | 249021D4217E4FDB00AE95B9 /* Profile */,
532 | );
533 | defaultConfigurationIsVisible = 0;
534 | defaultConfigurationName = Release;
535 | };
536 | /* End XCConfigurationList section */
537 | };
538 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
539 | }
540 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | example
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 | CADisableMinimumFrameDurationOnPhone
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/lib/extended_main.dart:
--------------------------------------------------------------------------------
1 | import 'dart:math';
2 |
3 | import 'package:debug_friend/debug_friend.dart';
4 | import 'package:example/utils/iamge_manager.dart';
5 | import 'package:example/utils/repository/shared_repository.dart';
6 | import 'package:flutter/material.dart';
7 |
8 | Future main() async {
9 | WidgetsFlutterBinding.ensureInitialized();
10 | final repository = SharedRepository();
11 | await repository.init();
12 | runApp(MyApp(
13 | repository: repository,
14 | ));
15 | }
16 |
17 | class MyApp extends StatefulWidget {
18 | const MyApp({Key? key, required this.repository}) : super(key: key);
19 | final SharedRepository repository;
20 |
21 | @override
22 | _MyAppState createState() => _MyAppState();
23 | }
24 |
25 | class _MyAppState extends State {
26 | var _brightness = Brightness.light;
27 | final _navigatorKey = GlobalKey();
28 |
29 | @override
30 | Widget build(BuildContext context) {
31 | return MaterialApp(
32 | title: 'Flutter Demo',
33 | theme: ThemeData(
34 | brightness: _brightness,
35 | primarySwatch: Colors.blue,
36 | ),
37 | navigatorKey: _navigatorKey,
38 | home: DebugFriendView(
39 | icon: const SizedBox(
40 | width: 50,
41 | height: 50,
42 | child: Icon(
43 | Icons.bug_report,
44 | color: Colors.white,
45 | size: 34,
46 | ),
47 | ),
48 | customActions: [
49 | ActionCard(
50 | icon: const Icon(Icons.delete),
51 | title: 'Custom action - Clear storage data',
52 | onTap: () {
53 | widget.repository.deleteValues();
54 | },
55 | ),
56 | ActionCard(
57 | icon: const Icon(Icons.dark_mode),
58 | title: 'Custom action - Enable dark mode',
59 | onTap: () {
60 | if (_brightness == Brightness.light) {
61 | setState(() => _brightness = Brightness.dark);
62 | } else {
63 | setState(() => _brightness = Brightness.light);
64 | }
65 | },
66 | ),
67 | ActionCard(
68 | icon: const Icon(Icons.notifications_active),
69 | title: 'Custom action - show dialog',
70 | onTap: () {
71 | showDialog(
72 | context: _navigatorKey.currentContext!,
73 | builder: (BuildContext context) {
74 | return const AlertDialog(
75 | title: Text("Custom action"),
76 | content: Text("Show dialog"),
77 | );
78 | },
79 | );
80 | },
81 | ),
82 | ],
83 | builder: (context) {
84 | return SafeArea(
85 | child: Scaffold(
86 | body: _AppActionsBody(
87 | repository: widget.repository,
88 | ),
89 | ),
90 | );
91 | },
92 | ),
93 | );
94 | }
95 | }
96 |
97 | class _AppActionsBody extends StatelessWidget {
98 | const _AppActionsBody({
99 | Key? key,
100 | required this.repository,
101 | }) : super(key: key);
102 |
103 | final SharedRepository repository;
104 |
105 | @override
106 | Widget build(BuildContext context) {
107 | final size = MediaQuery.of(context).size;
108 | return SizedBox(
109 | width: size.width,
110 | child: Padding(
111 | padding: const EdgeInsets.only(top: 40.0),
112 | child: Column(
113 | children: [
114 | const Text('Pick image for test'),
115 | ElevatedButton(
116 | onPressed: () {
117 | ImageManager.pickAndSave();
118 | },
119 | child: const Text('Pick and save file'),
120 | ),
121 | const Text('Shared repository data'),
122 | ElevatedButton(
123 | onPressed: () {
124 | repository.addValue(Random().nextInt(100));
125 | },
126 | child: const Text('Add data'),
127 | ),
128 | StreamBuilder>(
129 | stream: repository.stream,
130 | initialData: const [],
131 | builder:
132 | (BuildContext context, AsyncSnapshot> snapshot) {
133 | if (snapshot.data == null || snapshot.data!.isEmpty) {
134 | return const Text('No data in shared repository');
135 | }
136 | return Flexible(
137 | child: ListView.builder(
138 | padding: const EdgeInsets.symmetric(horizontal: 20.0),
139 | itemCount: snapshot.data!.length,
140 | itemBuilder: (ctx, i) {
141 | return Row(
142 | mainAxisAlignment: MainAxisAlignment.center,
143 | children: [
144 | Text('${snapshot.data![i]}'),
145 | ],
146 | );
147 | },
148 | ),
149 | );
150 | },
151 | ),
152 | ],
153 | ),
154 | ),
155 | );
156 | }
157 | }
158 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | void main() {
5 | runApp(const MyApp());
6 | }
7 |
8 | class MyApp extends StatelessWidget {
9 | const MyApp();
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | return MaterialApp(
14 | title: 'DebugFriend',
15 | theme: ThemeData(primaryColor: Colors.black),
16 | home: DebugFriendView(
17 | icon: const SizedBox(
18 | width: 50,
19 | height: 50,
20 | child: Icon(
21 | Icons.bug_report,
22 | color: Colors.white,
23 | size: 34,
24 | ),
25 | ),
26 | theme: const DebugFriendTheme(),
27 | // customActions: [
28 | // ActionCard(
29 | // icon: const Icon(Icons.print_rounded),
30 | // title: 'Print to console',
31 | // onTap: () => debugPrint('Print to console'),
32 | // ),
33 | // ],
34 | builder: (context) {
35 | return const SafeArea(
36 | child: Scaffold(
37 | body: Center(
38 | child: Text('DebugFriend'),
39 | ),
40 | ),
41 | );
42 | },
43 | ),
44 | );
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/lib/utils/iamge_manager.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 | import 'dart:math';
3 |
4 | import 'package:image_picker/image_picker.dart';
5 | import 'package:path_provider/path_provider.dart';
6 |
7 | abstract class ImageManager {
8 | static Future pickAndSave() async {
9 | final image = await _pick();
10 | await _save(image);
11 | }
12 |
13 | static Future _pick() async {
14 | final pickedFile =
15 | await ImagePicker().pickImage(source: ImageSource.camera);
16 | final File image = File(pickedFile!.path);
17 | return image;
18 | }
19 |
20 | static Future _save(File image) async {
21 | final dir = await getApplicationDocumentsDirectory();
22 | final path = dir.path;
23 | final rnd = Random().nextInt(1000);
24 | await image.copy('$path/$rnd${DateTime.now().toIso8601String()}.png');
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/lib/utils/repository/shared_repository.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 | import 'package:shared_preferences/shared_preferences.dart';
3 |
4 | class SharedRepository {
5 | late SharedPreferences _prefs;
6 |
7 | final _controller = StreamController>();
8 | Stream> get stream => _controller.stream;
9 |
10 | Future init() async {
11 | _prefs = await SharedPreferences.getInstance();
12 | _controller.add(await getValues());
13 | }
14 |
15 | Future addValue(int value) async {
16 | _prefs.setInt(DateTime.now().toIso8601String(), value);
17 | _controller.add(await getValues());
18 | }
19 |
20 | Future deleteValues() async {
21 | final keys = _prefs.getKeys();
22 | for (final key in keys) {
23 | _prefs.remove(key);
24 | }
25 | _controller.add([]);
26 | }
27 |
28 | Future> getValues() async {
29 | final values = [];
30 | final keys = _prefs.getKeys();
31 | for (final key in keys) {
32 | values.add(_prefs.getInt(key)!);
33 | }
34 | return values;
35 | }
36 |
37 | Future dispose() async {
38 | _controller.close();
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/.gitignore:
--------------------------------------------------------------------------------
1 | # Flutter-related
2 | **/Flutter/ephemeral/
3 | **/Pods/
4 |
5 | # Xcode-related
6 | **/xcuserdata/
7 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Flutter/Flutter-Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Flutter/Flutter-Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "ephemeral/Flutter-Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Flutter/GeneratedPluginRegistrant.swift:
--------------------------------------------------------------------------------
1 | //
2 | // Generated file. Do not edit.
3 | //
4 |
5 | import FlutterMacOS
6 | import Foundation
7 |
8 | import device_info_plus_macos
9 | import package_info_plus_macos
10 | import path_provider_macos
11 | import shared_preferences_macos
12 |
13 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
14 | DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
15 | FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin"))
16 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
17 | SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
18 | }
19 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Podfile:
--------------------------------------------------------------------------------
1 | platform :osx, '10.11'
2 |
3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
5 |
6 | project 'Runner', {
7 | 'Debug' => :debug,
8 | 'Profile' => :release,
9 | 'Release' => :release,
10 | }
11 |
12 | def flutter_root
13 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
14 | unless File.exist?(generated_xcode_build_settings_path)
15 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
16 | end
17 |
18 | File.foreach(generated_xcode_build_settings_path) do |line|
19 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
20 | return matches[1].strip if matches
21 | end
22 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
23 | end
24 |
25 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
26 |
27 | flutter_macos_podfile_setup
28 |
29 | target 'Runner' do
30 | use_frameworks!
31 | use_modular_headers!
32 |
33 | flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
34 | end
35 |
36 | post_install do |installer|
37 | installer.pods_project.targets.each do |target|
38 | flutter_additional_macos_build_settings(target)
39 | end
40 | end
41 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - device_info_plus_macos (0.0.1):
3 | - FlutterMacOS
4 | - FlutterMacOS (1.0.0)
5 | - package_info_plus_macos (0.0.1):
6 | - FlutterMacOS
7 | - path_provider_macos (0.0.1):
8 | - FlutterMacOS
9 | - shared_preferences_macos (0.0.1):
10 | - FlutterMacOS
11 |
12 | DEPENDENCIES:
13 | - device_info_plus_macos (from `Flutter/ephemeral/.symlinks/plugins/device_info_plus_macos/macos`)
14 | - FlutterMacOS (from `Flutter/ephemeral`)
15 | - package_info_plus_macos (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus_macos/macos`)
16 | - path_provider_macos (from `Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos`)
17 | - shared_preferences_macos (from `Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos`)
18 |
19 | EXTERNAL SOURCES:
20 | device_info_plus_macos:
21 | :path: Flutter/ephemeral/.symlinks/plugins/device_info_plus_macos/macos
22 | FlutterMacOS:
23 | :path: Flutter/ephemeral
24 | package_info_plus_macos:
25 | :path: Flutter/ephemeral/.symlinks/plugins/package_info_plus_macos/macos
26 | path_provider_macos:
27 | :path: Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos
28 | shared_preferences_macos:
29 | :path: Flutter/ephemeral/.symlinks/plugins/shared_preferences_macos/macos
30 |
31 | SPEC CHECKSUMS:
32 | device_info_plus_macos: 1ad388a1ef433505c4038e7dd9605aadd1e2e9c7
33 | FlutterMacOS: ae6af50a8ea7d6103d888583d46bd8328a7e9811
34 | package_info_plus_macos: f010621b07802a241d96d01876d6705f15e77c1c
35 | path_provider_macos: 160cab0d5461f0c0e02995469a98f24bdb9a3f1f
36 | shared_preferences_macos: a64dc611287ed6cbe28fd1297898db1336975727
37 |
38 | PODFILE CHECKSUM: 6eac6b3292e5142cfc23bdeb71848a40ec51c14c
39 |
40 | COCOAPODS: 1.11.3
41 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
52 |
54 |
60 |
61 |
62 |
63 |
64 |
65 |
71 |
73 |
79 |
80 |
81 |
82 |
84 |
85 |
88 |
89 |
90 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | @NSApplicationMain
5 | class AppDelegate: FlutterAppDelegate {
6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
7 | return true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "16x16",
5 | "idiom" : "mac",
6 | "filename" : "app_icon_16.png",
7 | "scale" : "1x"
8 | },
9 | {
10 | "size" : "16x16",
11 | "idiom" : "mac",
12 | "filename" : "app_icon_32.png",
13 | "scale" : "2x"
14 | },
15 | {
16 | "size" : "32x32",
17 | "idiom" : "mac",
18 | "filename" : "app_icon_32.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "32x32",
23 | "idiom" : "mac",
24 | "filename" : "app_icon_64.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "128x128",
29 | "idiom" : "mac",
30 | "filename" : "app_icon_128.png",
31 | "scale" : "1x"
32 | },
33 | {
34 | "size" : "128x128",
35 | "idiom" : "mac",
36 | "filename" : "app_icon_256.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "256x256",
41 | "idiom" : "mac",
42 | "filename" : "app_icon_256.png",
43 | "scale" : "1x"
44 | },
45 | {
46 | "size" : "256x256",
47 | "idiom" : "mac",
48 | "filename" : "app_icon_512.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "512x512",
53 | "idiom" : "mac",
54 | "filename" : "app_icon_512.png",
55 | "scale" : "1x"
56 | },
57 | {
58 | "size" : "512x512",
59 | "idiom" : "mac",
60 | "filename" : "app_icon_1024.png",
61 | "scale" : "2x"
62 | }
63 | ],
64 | "info" : {
65 | "version" : 1,
66 | "author" : "xcode"
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Configs/AppInfo.xcconfig:
--------------------------------------------------------------------------------
1 | // Application-level settings for the Runner target.
2 | //
3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
4 | // future. If not, the values below would default to using the project name when this becomes a
5 | // 'flutter create' template.
6 |
7 | // The application's name. By default this is also the title of the Flutter window.
8 | PRODUCT_NAME = example
9 |
10 | // The application's bundle identifier
11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example
12 |
13 | // The copyright displayed in application information
14 | PRODUCT_COPYRIGHT = Copyright © 2021 com.example. All rights reserved.
15 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Configs/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Debug.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Configs/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "../../Flutter/Flutter-Release.xcconfig"
2 | #include "Warnings.xcconfig"
3 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Configs/Warnings.xcconfig:
--------------------------------------------------------------------------------
1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
2 | GCC_WARN_UNDECLARED_SELECTOR = YES
3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
6 | CLANG_WARN_PRAGMA_PACK = YES
7 | CLANG_WARN_STRICT_PROTOTYPES = YES
8 | CLANG_WARN_COMMA = YES
9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES
10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
12 | GCC_WARN_SHADOW = YES
13 | CLANG_WARN_UNREACHABLE_CODE = YES
14 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/DebugProfile.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 | com.apple.security.cs.allow-jit
8 |
9 | com.apple.security.network.server
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIconFile
10 |
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(FLUTTER_BUILD_NAME)
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSMinimumSystemVersion
24 | $(MACOSX_DEPLOYMENT_TARGET)
25 | NSHumanReadableCopyright
26 | $(PRODUCT_COPYRIGHT)
27 | NSMainNibFile
28 | MainMenu
29 | NSPrincipalClass
30 | NSApplication
31 |
32 |
33 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/MainFlutterWindow.swift:
--------------------------------------------------------------------------------
1 | import Cocoa
2 | import FlutterMacOS
3 |
4 | class MainFlutterWindow: NSWindow {
5 | override func awakeFromNib() {
6 | let flutterViewController = FlutterViewController.init()
7 | let windowFrame = self.frame
8 | self.contentViewController = flutterViewController
9 | self.setFrame(windowFrame, display: true)
10 |
11 | RegisterGeneratedPlugins(registry: flutterViewController)
12 |
13 | super.awakeFromNib()
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/macos/Runner/Release.entitlements:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | com.apple.security.app-sandbox
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | ansicolor:
5 | dependency: transitive
6 | description:
7 | name: ansicolor
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.0.1"
11 | async:
12 | dependency: transitive
13 | description:
14 | name: async
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.9.0"
18 | boolean_selector:
19 | dependency: transitive
20 | description:
21 | name: boolean_selector
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.1.0"
25 | characters:
26 | dependency: transitive
27 | description:
28 | name: characters
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.2.1"
32 | charcode:
33 | dependency: transitive
34 | description:
35 | name: charcode
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.3.1"
39 | clock:
40 | dependency: transitive
41 | description:
42 | name: clock
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.1.1"
46 | collection:
47 | dependency: transitive
48 | description:
49 | name: collection
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.16.0"
53 | cross_file:
54 | dependency: transitive
55 | description:
56 | name: cross_file
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "0.3.3+1"
60 | debug_friend:
61 | dependency: "direct main"
62 | description:
63 | path: ".."
64 | relative: true
65 | source: path
66 | version: "1.0.0"
67 | device_info_plus:
68 | dependency: transitive
69 | description:
70 | name: device_info_plus
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "4.1.2"
74 | device_info_plus_linux:
75 | dependency: transitive
76 | description:
77 | name: device_info_plus_linux
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "3.0.0"
81 | device_info_plus_macos:
82 | dependency: transitive
83 | description:
84 | name: device_info_plus_macos
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "3.0.0"
88 | device_info_plus_platform_interface:
89 | dependency: transitive
90 | description:
91 | name: device_info_plus_platform_interface
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "3.0.0"
95 | device_info_plus_web:
96 | dependency: transitive
97 | description:
98 | name: device_info_plus_web
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "3.0.0"
102 | device_info_plus_windows:
103 | dependency: transitive
104 | description:
105 | name: device_info_plus_windows
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "4.0.0"
109 | fake_async:
110 | dependency: transitive
111 | description:
112 | name: fake_async
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "1.3.1"
116 | ffi:
117 | dependency: transitive
118 | description:
119 | name: ffi
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "2.0.1"
123 | file:
124 | dependency: transitive
125 | description:
126 | name: file
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "6.1.2"
130 | flutter:
131 | dependency: "direct main"
132 | description: flutter
133 | source: sdk
134 | version: "0.0.0"
135 | flutter_plugin_android_lifecycle:
136 | dependency: transitive
137 | description:
138 | name: flutter_plugin_android_lifecycle
139 | url: "https://pub.dartlang.org"
140 | source: hosted
141 | version: "2.0.7"
142 | flutter_test:
143 | dependency: "direct dev"
144 | description: flutter
145 | source: sdk
146 | version: "0.0.0"
147 | flutter_web_plugins:
148 | dependency: transitive
149 | description: flutter
150 | source: sdk
151 | version: "0.0.0"
152 | group_button:
153 | dependency: transitive
154 | description:
155 | name: group_button
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "5.2.0"
159 | http:
160 | dependency: transitive
161 | description:
162 | name: http
163 | url: "https://pub.dartlang.org"
164 | source: hosted
165 | version: "0.13.3"
166 | http_parser:
167 | dependency: transitive
168 | description:
169 | name: http_parser
170 | url: "https://pub.dartlang.org"
171 | source: hosted
172 | version: "4.0.0"
173 | image_picker:
174 | dependency: "direct main"
175 | description:
176 | name: image_picker
177 | url: "https://pub.dartlang.org"
178 | source: hosted
179 | version: "0.8.5+3"
180 | image_picker_android:
181 | dependency: "direct main"
182 | description:
183 | name: image_picker_android
184 | url: "https://pub.dartlang.org"
185 | source: hosted
186 | version: "0.8.4+13"
187 | image_picker_for_web:
188 | dependency: transitive
189 | description:
190 | name: image_picker_for_web
191 | url: "https://pub.dartlang.org"
192 | source: hosted
193 | version: "2.1.8"
194 | image_picker_ios:
195 | dependency: transitive
196 | description:
197 | name: image_picker_ios
198 | url: "https://pub.dartlang.org"
199 | source: hosted
200 | version: "0.8.5+6"
201 | image_picker_platform_interface:
202 | dependency: transitive
203 | description:
204 | name: image_picker_platform_interface
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "2.4.1"
208 | js:
209 | dependency: transitive
210 | description:
211 | name: js
212 | url: "https://pub.dartlang.org"
213 | source: hosted
214 | version: "0.6.4"
215 | lint:
216 | dependency: transitive
217 | description:
218 | name: lint
219 | url: "https://pub.dartlang.org"
220 | source: hosted
221 | version: "1.10.0"
222 | matcher:
223 | dependency: transitive
224 | description:
225 | name: matcher
226 | url: "https://pub.dartlang.org"
227 | source: hosted
228 | version: "0.12.12"
229 | material_color_utilities:
230 | dependency: transitive
231 | description:
232 | name: material_color_utilities
233 | url: "https://pub.dartlang.org"
234 | source: hosted
235 | version: "0.1.5"
236 | meta:
237 | dependency: transitive
238 | description:
239 | name: meta
240 | url: "https://pub.dartlang.org"
241 | source: hosted
242 | version: "1.8.0"
243 | package_info_plus:
244 | dependency: transitive
245 | description:
246 | name: package_info_plus
247 | url: "https://pub.dartlang.org"
248 | source: hosted
249 | version: "1.4.3+1"
250 | package_info_plus_linux:
251 | dependency: transitive
252 | description:
253 | name: package_info_plus_linux
254 | url: "https://pub.dartlang.org"
255 | source: hosted
256 | version: "1.0.5"
257 | package_info_plus_macos:
258 | dependency: transitive
259 | description:
260 | name: package_info_plus_macos
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "1.3.0"
264 | package_info_plus_platform_interface:
265 | dependency: transitive
266 | description:
267 | name: package_info_plus_platform_interface
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "1.0.2"
271 | package_info_plus_web:
272 | dependency: transitive
273 | description:
274 | name: package_info_plus_web
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "1.0.5"
278 | package_info_plus_windows:
279 | dependency: transitive
280 | description:
281 | name: package_info_plus_windows
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "2.0.0"
285 | path:
286 | dependency: transitive
287 | description:
288 | name: path
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "1.8.2"
292 | path_provider:
293 | dependency: "direct main"
294 | description:
295 | name: path_provider
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "2.0.11"
299 | path_provider_android:
300 | dependency: transitive
301 | description:
302 | name: path_provider_android
303 | url: "https://pub.dartlang.org"
304 | source: hosted
305 | version: "2.0.9"
306 | path_provider_ios:
307 | dependency: transitive
308 | description:
309 | name: path_provider_ios
310 | url: "https://pub.dartlang.org"
311 | source: hosted
312 | version: "2.0.7"
313 | path_provider_linux:
314 | dependency: transitive
315 | description:
316 | name: path_provider_linux
317 | url: "https://pub.dartlang.org"
318 | source: hosted
319 | version: "2.0.2"
320 | path_provider_macos:
321 | dependency: transitive
322 | description:
323 | name: path_provider_macos
324 | url: "https://pub.dartlang.org"
325 | source: hosted
326 | version: "2.0.2"
327 | path_provider_platform_interface:
328 | dependency: transitive
329 | description:
330 | name: path_provider_platform_interface
331 | url: "https://pub.dartlang.org"
332 | source: hosted
333 | version: "2.0.1"
334 | path_provider_windows:
335 | dependency: transitive
336 | description:
337 | name: path_provider_windows
338 | url: "https://pub.dartlang.org"
339 | source: hosted
340 | version: "2.1.2"
341 | pedantic:
342 | dependency: transitive
343 | description:
344 | name: pedantic
345 | url: "https://pub.dartlang.org"
346 | source: hosted
347 | version: "1.11.1"
348 | platform:
349 | dependency: "direct main"
350 | description:
351 | name: platform
352 | url: "https://pub.dartlang.org"
353 | source: hosted
354 | version: "3.1.0"
355 | plugin_platform_interface:
356 | dependency: transitive
357 | description:
358 | name: plugin_platform_interface
359 | url: "https://pub.dartlang.org"
360 | source: hosted
361 | version: "2.0.1"
362 | process:
363 | dependency: transitive
364 | description:
365 | name: process
366 | url: "https://pub.dartlang.org"
367 | source: hosted
368 | version: "4.2.3"
369 | shared_preferences:
370 | dependency: "direct main"
371 | description:
372 | name: shared_preferences
373 | url: "https://pub.dartlang.org"
374 | source: hosted
375 | version: "2.0.15"
376 | shared_preferences_android:
377 | dependency: transitive
378 | description:
379 | name: shared_preferences_android
380 | url: "https://pub.dartlang.org"
381 | source: hosted
382 | version: "2.0.12"
383 | shared_preferences_ios:
384 | dependency: transitive
385 | description:
386 | name: shared_preferences_ios
387 | url: "https://pub.dartlang.org"
388 | source: hosted
389 | version: "2.1.1"
390 | shared_preferences_linux:
391 | dependency: transitive
392 | description:
393 | name: shared_preferences_linux
394 | url: "https://pub.dartlang.org"
395 | source: hosted
396 | version: "2.1.1"
397 | shared_preferences_macos:
398 | dependency: transitive
399 | description:
400 | name: shared_preferences_macos
401 | url: "https://pub.dartlang.org"
402 | source: hosted
403 | version: "2.0.4"
404 | shared_preferences_platform_interface:
405 | dependency: transitive
406 | description:
407 | name: shared_preferences_platform_interface
408 | url: "https://pub.dartlang.org"
409 | source: hosted
410 | version: "2.0.0"
411 | shared_preferences_web:
412 | dependency: transitive
413 | description:
414 | name: shared_preferences_web
415 | url: "https://pub.dartlang.org"
416 | source: hosted
417 | version: "2.0.4"
418 | shared_preferences_windows:
419 | dependency: transitive
420 | description:
421 | name: shared_preferences_windows
422 | url: "https://pub.dartlang.org"
423 | source: hosted
424 | version: "2.1.1"
425 | sky_engine:
426 | dependency: transitive
427 | description: flutter
428 | source: sdk
429 | version: "0.0.99"
430 | source_span:
431 | dependency: transitive
432 | description:
433 | name: source_span
434 | url: "https://pub.dartlang.org"
435 | source: hosted
436 | version: "1.9.0"
437 | stack_trace:
438 | dependency: transitive
439 | description:
440 | name: stack_trace
441 | url: "https://pub.dartlang.org"
442 | source: hosted
443 | version: "1.10.0"
444 | stream_channel:
445 | dependency: transitive
446 | description:
447 | name: stream_channel
448 | url: "https://pub.dartlang.org"
449 | source: hosted
450 | version: "2.1.0"
451 | string_scanner:
452 | dependency: transitive
453 | description:
454 | name: string_scanner
455 | url: "https://pub.dartlang.org"
456 | source: hosted
457 | version: "1.1.1"
458 | talker:
459 | dependency: transitive
460 | description:
461 | name: talker
462 | url: "https://pub.dartlang.org"
463 | source: hosted
464 | version: "1.3.0+1"
465 | talker_flutter:
466 | dependency: transitive
467 | description:
468 | name: talker_flutter
469 | url: "https://pub.dartlang.org"
470 | source: hosted
471 | version: "1.6.0"
472 | talker_logger:
473 | dependency: transitive
474 | description:
475 | name: talker_logger
476 | url: "https://pub.dartlang.org"
477 | source: hosted
478 | version: "1.2.1"
479 | term_glyph:
480 | dependency: transitive
481 | description:
482 | name: term_glyph
483 | url: "https://pub.dartlang.org"
484 | source: hosted
485 | version: "1.2.1"
486 | test_api:
487 | dependency: transitive
488 | description:
489 | name: test_api
490 | url: "https://pub.dartlang.org"
491 | source: hosted
492 | version: "0.4.12"
493 | typed_data:
494 | dependency: transitive
495 | description:
496 | name: typed_data
497 | url: "https://pub.dartlang.org"
498 | source: hosted
499 | version: "1.3.0"
500 | vector_math:
501 | dependency: transitive
502 | description:
503 | name: vector_math
504 | url: "https://pub.dartlang.org"
505 | source: hosted
506 | version: "2.1.2"
507 | win32:
508 | dependency: transitive
509 | description:
510 | name: win32
511 | url: "https://pub.dartlang.org"
512 | source: hosted
513 | version: "2.7.0"
514 | xdg_directories:
515 | dependency: transitive
516 | description:
517 | name: xdg_directories
518 | url: "https://pub.dartlang.org"
519 | source: hosted
520 | version: "0.2.0"
521 | sdks:
522 | dart: ">=2.17.0 <3.0.0"
523 | flutter: ">=3.0.0"
524 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: example
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.12.0 <3.0.0"
22 |
23 | dependencies:
24 | debug_friend:
25 | path: ../
26 | flutter:
27 | sdk: flutter
28 | image_picker: ^0.8.5+3
29 | image_picker_android: 0.8.4+13
30 | path_provider: ^2.0.11
31 | shared_preferences: ^2.0.15
32 | platform: 3.1.0
33 |
34 | dev_dependencies:
35 | flutter_test:
36 | sdk: flutter
37 |
38 | # For information on the generic Dart part of this file, see the
39 | # following page: https://dart.dev/tools/pub/pubspec
40 |
41 | # The following section is specific to Flutter.
42 | flutter:
43 |
44 | # The following line ensures that the Material Icons font is
45 | # included with your application, so that you can use the icons in
46 | # the material Icons class.
47 | uses-material-design: true
48 |
49 | # To add assets to your application, add an assets section, like this:
50 | # assets:
51 | # - images/a_dot_burr.jpeg
52 | # - images/a_dot_ham.jpeg
53 |
54 | # An image asset can refer to one or more resolution-specific "variants", see
55 | # https://flutter.dev/assets-and-images/#resolution-aware.
56 |
57 | # For details regarding adding assets from package dependencies, see
58 | # https://flutter.dev/assets-and-images/#from-packages
59 |
60 | # To add custom fonts to your application, add a fonts section here,
61 | # in this "flutter" section. Each entry in this list should have a
62 | # "family" key with the font family name, and a "fonts" key with a
63 | # list giving the asset and other descriptors for the font. For
64 | # example:
65 | # fonts:
66 | # - family: Schyler
67 | # fonts:
68 | # - asset: fonts/Schyler-Regular.ttf
69 | # - asset: fonts/Schyler-Italic.ttf
70 | # style: italic
71 | # - family: Trajan Pro
72 | # fonts:
73 | # - asset: fonts/TrajanPro.ttf
74 | # - asset: fonts/TrajanPro_Bold.ttf
75 | # weight: 700
76 | #
77 | # For details regarding fonts from package dependencies,
78 | # see https://flutter.dev/custom-fonts/#from-packages
79 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/repo_files/logo.svg:
--------------------------------------------------------------------------------
1 |
16 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/repo_files/preview.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/repo_files/preview.gif
--------------------------------------------------------------------------------
/packages/debug_friend/example/repo_files/s1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/repo_files/s1.jpg
--------------------------------------------------------------------------------
/packages/debug_friend/example/repo_files/s2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/repo_files/s2.jpg
--------------------------------------------------------------------------------
/packages/debug_friend/example/repo_files/s3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/repo_files/s3.jpg
--------------------------------------------------------------------------------
/packages/debug_friend/example/repo_files/s4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/repo_files/s4.jpg
--------------------------------------------------------------------------------
/packages/debug_friend/example/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/web/favicon.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/debug_friend/example/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/packages/debug_friend/example/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | example
27 |
28 |
29 |
30 |
33 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/packages/debug_friend/example/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "example",
3 | "short_name": "example",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/debug_friend.dart:
--------------------------------------------------------------------------------
1 | library debug_friend;
2 |
3 | export 'src/src.dart';
4 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/services/file/service.dart:
--------------------------------------------------------------------------------
1 | export 'src/src.dart';
2 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/services/file/src/abstract_file_service.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | abstract class AbstractFileService {
4 | Future deleteCacheDir();
5 | Future deleteAppDir();
6 | Future> getFiles();
7 | }
8 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/services/file/src/file_service.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:debug_friend/src/services/file/service.dart';
4 | import 'package:path_provider/path_provider.dart';
5 |
6 | class FileService implements AbstractFileService {
7 | FileService._();
8 |
9 | static final AbstractFileService _service = FileService._();
10 | static AbstractFileService get instance => _service;
11 |
12 | @override
13 | Future deleteAppDir() => _deleteAppDir();
14 |
15 | Future _deleteAppDir() async {
16 | final appDir = await getApplicationSupportDirectory();
17 |
18 | if (appDir.existsSync()) {
19 | appDir.deleteSync(recursive: true);
20 | }
21 | }
22 |
23 | @override
24 | Future deleteCacheDir() => _deleteCacheDir();
25 |
26 | Future _deleteCacheDir() async {
27 | final cacheDir = await getTemporaryDirectory();
28 |
29 | if (cacheDir.existsSync()) {
30 | cacheDir.deleteSync(recursive: true);
31 | }
32 | }
33 |
34 | @override
35 | Future> getFiles() => _getFilesList();
36 |
37 | Future> _getFilesList() async {
38 | final fileModels = [];
39 | final cacheDir = await getTemporaryDirectory();
40 | final files = cacheDir.listSync();
41 | for (final file in files) {
42 | final fileModel = File(file.path);
43 | fileModels.add(fileModel);
44 | }
45 | return fileModels;
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/services/file/src/src.dart:
--------------------------------------------------------------------------------
1 | export 'abstract_file_service.dart';
2 | export 'file_service.dart';
3 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/src.dart:
--------------------------------------------------------------------------------
1 | export 'theme/theme.dart';
2 | export 'widgets/action_card/action_card.dart';
3 | export 'widgets/debug_friend_view.dart';
4 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/theme/defaults.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | final defaultShadow = [
4 | BoxShadow(
5 | color: Colors.black.withOpacity(0.1),
6 | blurRadius: 15,
7 | offset: const Offset(0, 2),
8 | )
9 | ];
10 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/theme/theme.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class DebugFriendTheme {
4 | const DebugFriendTheme({
5 | this.primaryColor = Colors.purple,
6 | this.backgroundColor = const Color(0xFF1E1F28),
7 | this.cardColor = const Color(0xFF2A2C36),
8 | this.lightCardColor = const Color(0xFF3C3E4E),
9 | this.bodyText = const TextStyle(color: Colors.white, fontSize: 16),
10 | this.headerStyle = const TextStyle(
11 | color: Colors.white,
12 | fontSize: 18,
13 | fontWeight: FontWeight.w600,
14 | ),
15 | this.subtitleText = const TextStyle(
16 | color: Colors.white,
17 | fontSize: 13,
18 | fontWeight: FontWeight.w400,
19 | ),
20 | });
21 |
22 | final Color primaryColor;
23 | final Color backgroundColor;
24 | final Color cardColor;
25 | final Color lightCardColor;
26 | final TextStyle bodyText;
27 | final TextStyle subtitleText;
28 | final TextStyle headerStyle;
29 |
30 | factory DebugFriendTheme.fromFlutterTheme(BuildContext context) {
31 | final t = Theme.of(context);
32 | return DebugFriendTheme(
33 | primaryColor: t.primaryColor,
34 | backgroundColor: t.backgroundColor,
35 | cardColor: t.cardColor,
36 | lightCardColor: t.canvasColor,
37 | );
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/utils/bottom_sheet_manager.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class BottomSheetManager {
5 | BottomSheetManager();
6 |
7 | void showBottomSheet(
8 | BuildContext context, {
9 | required WidgetBuilder builder,
10 | required DebugFriendTheme theme,
11 | }) {
12 | showModalBottomSheet(
13 | context: context,
14 | isScrollControlled: true,
15 | backgroundColor: theme.backgroundColor,
16 | shape: const RoundedRectangleBorder(
17 | borderRadius: BorderRadius.vertical(
18 | top: Radius.circular(10),
19 | ),
20 | ),
21 | builder: builder,
22 | );
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/utils/simulation_calculator.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/painting.dart';
2 | import 'package:flutter/physics.dart';
3 |
4 | class SimulationCalculator {
5 | SpringSimulation calculateSimulation(Offset pixelsPerSecond, Size size) {
6 | final unitsPerSecondX = pixelsPerSecond.dx / size.width;
7 | final unitsPerSecondY = pixelsPerSecond.dy / size.height;
8 | final unitsPerSecond = Offset(unitsPerSecondX, unitsPerSecondY);
9 | final unitVelocity = unitsPerSecond.distance;
10 |
11 | const spring = SpringDescription(
12 | mass: 30,
13 | stiffness: 1,
14 | damping: 1,
15 | );
16 |
17 | final simulation = SpringSimulation(spring, 0, 1, -unitVelocity);
18 | return simulation;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/utils/talker.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: avoid_redundant_argument_values
2 |
3 | import 'package:flutter/foundation.dart';
4 | import 'package:talker_flutter/talker_flutter.dart';
5 |
6 | final talker = Talker(
7 | settings: TalkerSettings(
8 | useConsoleLogs: kDebugMode,
9 | useHistory: kDebugMode,
10 | ),
11 | );
12 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/utils/utils.dart:
--------------------------------------------------------------------------------
1 | export 'bottom_sheet_manager.dart';
2 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/action_card/action_card.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:debug_friend/src/widgets/widgets.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | /// Creates a custom button for any test action in your application
6 | ///
7 | /// {@tool snippet}
8 | ///
9 | /// This sample shows how to define an action card.
10 | ///
11 | /// ```dart
12 | /// ActionCard(
13 | /// icon: const Icon(Icons.dark_mode),
14 | /// title: 'Enable dark mode',
15 | /// onTap: () {
16 | /// // Your custom action to toggle theme mode
17 | /// },
18 | /// ),
19 | /// ```
20 | /// {@end-tool}
21 | class ActionCard extends StatelessWidget {
22 | const ActionCard({
23 | Key? key,
24 | required this.onTap,
25 | required this.icon,
26 | this.title,
27 | required this.theme,
28 | this.selected = false,
29 | }) : super(key: key);
30 |
31 | /// Icon of your custom action card
32 | final Widget icon;
33 |
34 | /// Title of your custom action card
35 | final String? title;
36 |
37 | /// Your custom method for testing in this action card
38 | final Function() onTap;
39 |
40 | final DebugFriendTheme theme;
41 |
42 | final bool selected;
43 |
44 | @override
45 | Widget build(BuildContext context) {
46 | return InkWell(
47 | onTap: onTap,
48 | child: Row(
49 | children: [
50 | CommonActionHeader(
51 | icon: icon,
52 | theme: theme,
53 | selected: selected,
54 | ),
55 | if (title != null) const SizedBox(width: 10),
56 | if (title != null) Text(title!, style: theme.bodyText),
57 | ],
58 | ),
59 | );
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/action_headers/action_headers.dart:
--------------------------------------------------------------------------------
1 | export 'common_action_header.dart';
2 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/action_headers/common_action_header.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:debug_friend/src/theme/defaults.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | class CommonActionHeader extends StatelessWidget {
6 | const CommonActionHeader({
7 | Key? key,
8 | required this.icon,
9 | required this.theme,
10 | this.selected = false,
11 | }) : super(key: key);
12 |
13 | final DebugFriendTheme theme;
14 | final Widget icon;
15 | final bool selected;
16 |
17 | @override
18 | Widget build(BuildContext context) {
19 | return Container(
20 | width: 45,
21 | height: 45,
22 | decoration: BoxDecoration(
23 | color: selected ? theme.primaryColor : theme.cardColor,
24 | borderRadius: BorderRadius.circular(10),
25 | boxShadow: defaultShadow,
26 | ),
27 | padding: const EdgeInsets.all(8.0),
28 | margin: const EdgeInsets.only(left: 10),
29 | child: icon,
30 | );
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/actions.dart:
--------------------------------------------------------------------------------
1 | export 'app_actions/app_actions.dart';
2 | export 'app_data/app_data.dart';
3 | export 'app_info/app_info.dart';
4 | export 'common_action_body.dart';
5 | export 'custom_action_body.dart';
6 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/app_actions/app_action_body.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:debug_friend/src/widgets/widgets.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | class AppActionsBody extends StatefulWidget {
6 | const AppActionsBody({
7 | Key? key,
8 | required this.theme,
9 | }) : super(key: key);
10 |
11 | final DebugFriendTheme theme;
12 |
13 | @override
14 | State createState() => _AppActionsBodyState();
15 | }
16 |
17 | class _AppActionsBodyState extends State {
18 | final _controller = AppActionsController();
19 |
20 | @override
21 | Widget build(BuildContext context) {
22 | return AnimatedBuilder(
23 | animation: _controller,
24 | builder: (context, _) {
25 | return CustomActionBody(
26 | cards: [
27 | Padding(
28 | padding: const EdgeInsets.symmetric(horizontal: 16.0),
29 | child: Text(
30 | 'Debug actions',
31 | style: widget.theme.headerStyle,
32 | ),
33 | ),
34 | ActionCard(
35 | onTap: _controller.exitApp,
36 | title: 'Close app',
37 | icon: const Icon(Icons.exit_to_app, color: Colors.white),
38 | theme: widget.theme,
39 | ),
40 | ActionCard(
41 | onTap: _controller.toggleDebugPaintSizeEnabled,
42 | title: 'Show paint sizes',
43 | icon: const Icon(Icons.square_foot, color: Colors.white),
44 | theme: widget.theme,
45 | selected: _controller.debugPaintSizeEnabled,
46 | ),
47 | ActionCard(
48 | onTap: _controller.toggleDebugPaintBaselinesEnabled,
49 | title: 'Show paint baselines',
50 | icon: const Icon(Icons.text_format, color: Colors.white),
51 | theme: widget.theme,
52 | selected: _controller.debugPaintBaselinesEnabled,
53 | ),
54 | ActionCard(
55 | onTap: _controller.toggleDebugPaintLayerBordersEnabled,
56 | title: 'Show paint layer borders',
57 | icon: const Icon(Icons.border_style, color: Colors.white),
58 | theme: widget.theme,
59 | selected: _controller.debugPaintLayerBordersEnabled,
60 | ),
61 | ActionCard(
62 | onTap: _controller.toggleDebugRepaintRainbowEnabled,
63 | title: 'Show repaint rainbow',
64 | icon: const Icon(Icons.palette, color: Colors.white),
65 | theme: widget.theme,
66 | selected: _controller.debugRepaintRainbowEnabled,
67 | ),
68 | ActionCard(
69 | onTap: _controller.toggleDebugRepaintTextRainbowEnabled,
70 | title: 'Show repaint text rainbow',
71 | icon: const Icon(Icons.text_rotate_up, color: Colors.white),
72 | theme: widget.theme,
73 | selected: _controller.debugRepaintTextRainbowEnabled,
74 | ),
75 | ActionCard(
76 | onTap: _controller.toggleDebugDisableClipLayers,
77 | title: 'Disable clip layers',
78 | icon: const Icon(Icons.circle_outlined, color: Colors.white),
79 | theme: widget.theme,
80 | selected: _controller.debugDisableClipLayers,
81 | ),
82 | ActionCard(
83 | onTap: _controller.toggleDebugDisablePhysicalShapeLayers,
84 | title: 'Disable physical shape layers',
85 | icon: const Icon(Icons.rounded_corner, color: Colors.white),
86 | theme: widget.theme,
87 | selected: _controller.debugDisablePhysicalShapeLayers,
88 | ),
89 | ActionCard(
90 | onTap: _controller.toggleDebugDisableOpacityLayers,
91 | title: 'Disable opacity layers',
92 | icon: const Icon(Icons.opacity, color: Colors.white),
93 | theme: widget.theme,
94 | selected: _controller.debugDisableOpacityLayers,
95 | ),
96 | ],
97 | );
98 | },
99 | );
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/app_actions/app_actions.dart:
--------------------------------------------------------------------------------
1 | export 'app_action_body.dart';
2 | export 'app_actions_controller.dart';
3 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/app_actions/app_actions_controller.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:debug_friend/src/utils/talker.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:flutter/rendering.dart' as r;
6 |
7 | class AppActionsController extends ChangeNotifier {
8 | var _debugDisableOpacityLayers = false;
9 | bool get debugDisableOpacityLayers => _debugDisableOpacityLayers;
10 | void toggleDebugDisableOpacityLayers() {
11 | r.debugDisableOpacityLayers = !r.debugDisableOpacityLayers;
12 | _debugDisableOpacityLayers = r.debugDisableOpacityLayers;
13 | notifyListeners();
14 | }
15 |
16 | var _debugDisablePhysicalShapeLayers = false;
17 | bool get debugDisablePhysicalShapeLayers => _debugDisablePhysicalShapeLayers;
18 | void toggleDebugDisablePhysicalShapeLayers() {
19 | r.debugDisablePhysicalShapeLayers = !r.debugDisablePhysicalShapeLayers;
20 | _debugDisablePhysicalShapeLayers = r.debugDisablePhysicalShapeLayers;
21 | notifyListeners();
22 | }
23 |
24 | var _debugDisableClipLayers = false;
25 | bool get debugDisableClipLayers => _debugDisableClipLayers;
26 | void toggleDebugDisableClipLayers() {
27 | r.debugDisableClipLayers = !r.debugDisableClipLayers;
28 | _debugDisableClipLayers = r.debugDisableClipLayers;
29 | notifyListeners();
30 | }
31 |
32 | var _debugRepaintTextRainbowEnabled = false;
33 | bool get debugRepaintTextRainbowEnabled => _debugRepaintTextRainbowEnabled;
34 | void toggleDebugRepaintTextRainbowEnabled() {
35 | r.debugRepaintTextRainbowEnabled = !r.debugRepaintTextRainbowEnabled;
36 | _debugRepaintTextRainbowEnabled = r.debugRepaintTextRainbowEnabled;
37 | notifyListeners();
38 | }
39 |
40 | var _debugRepaintRainbowEnabled = false;
41 | bool get debugRepaintRainbowEnabled => _debugRepaintRainbowEnabled;
42 | void toggleDebugRepaintRainbowEnabled() {
43 | r.debugRepaintRainbowEnabled = !r.debugRepaintRainbowEnabled;
44 | _debugRepaintRainbowEnabled = r.debugRepaintRainbowEnabled;
45 | notifyListeners();
46 | }
47 |
48 | var _debugPaintLayerBordersEnabled = false;
49 | bool get debugPaintLayerBordersEnabled => _debugPaintLayerBordersEnabled;
50 | void toggleDebugPaintLayerBordersEnabled() {
51 | r.debugPaintLayerBordersEnabled = !r.debugPaintLayerBordersEnabled;
52 | _debugPaintLayerBordersEnabled = r.debugPaintLayerBordersEnabled;
53 | notifyListeners();
54 | }
55 |
56 | var _debugPaintBaselinesEnabled = false;
57 | bool get debugPaintBaselinesEnabled => _debugPaintBaselinesEnabled;
58 | void toggleDebugPaintBaselinesEnabled() {
59 | r.debugPaintBaselinesEnabled = !r.debugPaintBaselinesEnabled;
60 | _debugPaintBaselinesEnabled = r.debugPaintBaselinesEnabled;
61 | notifyListeners();
62 | }
63 |
64 | var _debugPaintSizeEnabled = false;
65 | bool get debugPaintSizeEnabled => _debugPaintSizeEnabled;
66 | void toggleDebugPaintSizeEnabled() {
67 | r.debugPaintSizeEnabled = !r.debugPaintSizeEnabled;
68 | _debugPaintSizeEnabled = r.debugPaintSizeEnabled;
69 | notifyListeners();
70 | }
71 |
72 | void exitApp() {
73 | try {
74 | exit(0);
75 | } on Exception catch (e, st) {
76 | talker.handle(e, st);
77 | }
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/app_data/app_data.dart:
--------------------------------------------------------------------------------
1 | export 'app_data_body.dart';
2 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/app_data/app_data_body.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:debug_friend/src/widgets/actions/app_data/app_data_controller.dart';
3 | import 'package:debug_friend/src/widgets/widgets.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class AppDataBody extends StatefulWidget {
7 | const AppDataBody({
8 | Key? key,
9 | required this.theme,
10 | }) : super(key: key);
11 |
12 | final DebugFriendTheme theme;
13 |
14 | @override
15 | _AppDataBodyState createState() => _AppDataBodyState();
16 | }
17 |
18 | class _AppDataBodyState extends State {
19 | final _controller = AppDataController();
20 | // var _files = [];
21 |
22 | @override
23 | void initState() {
24 | // _loadFilesList();
25 | _controller.loadFilesList();
26 | super.initState();
27 | }
28 |
29 | @override
30 | Widget build(BuildContext context) {
31 | return AnimatedBuilder(
32 | animation: _controller,
33 | builder: (context, _) {
34 | return Flexible(
35 | child: Column(
36 | crossAxisAlignment: CrossAxisAlignment.start,
37 | children: [
38 | const SizedBox(height: 10),
39 | Padding(
40 | padding: const EdgeInsets.symmetric(horizontal: 16.0),
41 | child: Row(
42 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
43 | children: [
44 | Column(
45 | crossAxisAlignment: CrossAxisAlignment.start,
46 | children: [
47 | Text(
48 | 'App data',
49 | style: widget.theme.headerStyle,
50 | ),
51 | Text(
52 | 'Total files count: ${_controller.files.length}',
53 | style: widget.theme.bodyText,
54 | ),
55 | ],
56 | ),
57 | IconButton(
58 | onPressed: _deleteFiles,
59 | icon: const Icon(
60 | Icons.delete,
61 | color: Colors.red,
62 | ),
63 | ),
64 | ],
65 | ),
66 | ),
67 | Expanded(
68 | child: ListView.separated(
69 | physics: const BouncingScrollPhysics(),
70 | padding: const EdgeInsets.only(top: 10.0),
71 | itemCount: _controller.files.length,
72 | separatorBuilder: (_, __) => const SizedBox(height: 0),
73 | itemBuilder: (BuildContext ctx, i) {
74 | final f = _controller.files[i];
75 | return CommonActionBody(
76 | theme: widget.theme,
77 | margin: const EdgeInsets.symmetric(
78 | vertical: 10,
79 | horizontal: 10,
80 | ),
81 | child: Row(
82 | children: [
83 | Expanded(
84 | child: Text(
85 | f.path,
86 | style: widget.theme.subtitleText,
87 | ),
88 | ),
89 | IconButton(
90 | onPressed: () => _deleteFile(i),
91 | icon: const Icon(
92 | Icons.delete,
93 | color: Colors.red,
94 | ),
95 | ),
96 | ],
97 | ),
98 | );
99 | },
100 | ),
101 | )
102 | ],
103 | ),
104 | );
105 | },
106 | );
107 | }
108 |
109 | void _deleteFiles() => _controller.deleteFiles();
110 |
111 | void _deleteFile(int index) => _controller.deleteFile(index);
112 | }
113 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/app_data/app_data_controller.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:debug_friend/src/services/file/service.dart';
4 | import 'package:debug_friend/src/utils/talker.dart';
5 | import 'package:flutter/foundation.dart';
6 |
7 | class AppDataController extends ChangeNotifier {
8 | var _files = [];
9 | List get files => _files;
10 |
11 | Future loadFilesList() async {
12 | try {
13 | final f = await FileService.instance.getFiles();
14 | _files = f;
15 | notifyListeners();
16 | } on Exception catch (e, st) {
17 | talker.handle(e, st);
18 | }
19 | }
20 |
21 | Future deleteFile(int index) async {
22 | try {
23 | await _files[index].delete();
24 | await loadFilesList();
25 | } on Exception catch (e, st) {
26 | talker.handle(e, st);
27 | }
28 | }
29 |
30 | Future deleteFiles() async {
31 | try {
32 | for (final file in _files) {
33 | await file.delete();
34 | }
35 | await loadFilesList();
36 | } on Exception catch (e, st) {
37 | talker.handle(e, st);
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/app_info/app_info.dart:
--------------------------------------------------------------------------------
1 | export 'app_info_body.dart';
2 | export 'device_info_body.dart';
3 | export 'package_info_body.dart';
4 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/app_info/app_info_body.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:debug_friend/src/widgets/actions/app_info/app_info.dart';
3 | import 'package:debug_friend/src/widgets/actions/app_info/app_info_controller.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class AppInfoBody extends StatefulWidget {
7 | const AppInfoBody({
8 | Key? key,
9 | required this.theme,
10 | }) : super(key: key);
11 |
12 | final DebugFriendTheme theme;
13 |
14 | @override
15 | State createState() => _AppInfoBodyState();
16 | }
17 |
18 | class _AppInfoBodyState extends State {
19 | final _contorller = AppInfoController();
20 |
21 | @override
22 | void initState() {
23 | _contorller.loadAll();
24 | super.initState();
25 | }
26 |
27 | @override
28 | Widget build(BuildContext context) {
29 | return AnimatedBuilder(
30 | animation: _contorller,
31 | builder: (context, _) {
32 | return Expanded(
33 | child: ListView(
34 | physics: const BouncingScrollPhysics(),
35 | children: [
36 | const SizedBox(height: 10),
37 | DeviceInfoBody(
38 | theme: widget.theme,
39 | androidDeviceInfo: _contorller.androidDeviceInfo,
40 | iosDeviceInfo: _contorller.iosDeviceInfo,
41 | ),
42 | const SizedBox(height: 10),
43 | PackageInfoBody(
44 | theme: widget.theme,
45 | packageInfo: _contorller.packageInfo,
46 | ),
47 | ],
48 | ),
49 | );
50 | },
51 | );
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/app_info/app_info_controller.dart:
--------------------------------------------------------------------------------
1 | import 'dart:io';
2 |
3 | import 'package:debug_friend/src/utils/talker.dart';
4 | import 'package:device_info_plus/device_info_plus.dart';
5 | import 'package:flutter/material.dart';
6 | import 'package:package_info_plus/package_info_plus.dart';
7 |
8 | class AppInfoController extends ChangeNotifier {
9 | static final DeviceInfoPlugin _deviceInfo = DeviceInfoPlugin();
10 |
11 | AndroidDeviceInfo? _androidDeviceInfo;
12 | IosDeviceInfo? _iosDeviceInfo;
13 | PackageInfo? _packageInfo;
14 |
15 | PackageInfo? get packageInfo => _packageInfo;
16 | IosDeviceInfo? get iosDeviceInfo => _iosDeviceInfo;
17 | AndroidDeviceInfo? get androidDeviceInfo => _androidDeviceInfo;
18 |
19 | Future loadAll() async {
20 | await _loadPackageInfo();
21 | if (Platform.isIOS) {
22 | _iosDeviceInfo = await _deviceInfo.iosInfo;
23 | } else if (Platform.isAndroid) {
24 | _androidDeviceInfo = await _deviceInfo.androidInfo;
25 | }
26 | notifyListeners();
27 | }
28 |
29 | Future _loadPackageInfo() async {
30 | try {
31 | _packageInfo = await PackageInfo.fromPlatform();
32 | notifyListeners();
33 | } on Exception catch (e, st) {
34 | talker.handle(e, st);
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/app_info/device_info_body.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:debug_friend/src/widgets/widgets.dart';
3 | import 'package:device_info_plus/device_info_plus.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class DeviceInfoBody extends StatelessWidget {
7 | const DeviceInfoBody({
8 | Key? key,
9 | required this.theme,
10 | this.androidDeviceInfo,
11 | this.iosDeviceInfo,
12 | }) : super(key: key);
13 |
14 | final DebugFriendTheme theme;
15 | final AndroidDeviceInfo? androidDeviceInfo;
16 | final IosDeviceInfo? iosDeviceInfo;
17 |
18 | @override
19 | Widget build(BuildContext context) {
20 | Widget? child;
21 |
22 | if (androidDeviceInfo != null) {
23 | child = _AndroidInfoBody(
24 | androidDeviceInfo: androidDeviceInfo!,
25 | theme: theme,
26 | );
27 | } else if (iosDeviceInfo != null) {
28 | child = _IosInfoBody(
29 | iosDeviceInfo: iosDeviceInfo!,
30 | theme: theme,
31 | );
32 | } else {
33 | child = const SizedBox();
34 | }
35 |
36 | return Column(
37 | crossAxisAlignment: CrossAxisAlignment.start,
38 | children: [
39 | Padding(
40 | padding: const EdgeInsets.symmetric(horizontal: 16.0),
41 | child: Text(
42 | 'Device info',
43 | style: theme.headerStyle,
44 | ),
45 | ),
46 | CommonActionBody(
47 | theme: theme,
48 | child: child,
49 | ),
50 | ],
51 | );
52 | }
53 | }
54 |
55 | class _AndroidInfoBody extends StatelessWidget {
56 | const _AndroidInfoBody({
57 | Key? key,
58 | required AndroidDeviceInfo androidDeviceInfo,
59 | required this.theme,
60 | }) : _deviceInfo = androidDeviceInfo,
61 | super(key: key);
62 |
63 | final DebugFriendTheme theme;
64 | final AndroidDeviceInfo _deviceInfo;
65 |
66 | @override
67 | Widget build(BuildContext context) {
68 | final size = MediaQuery.of(context).size;
69 | return SizedBox(
70 | width: size.width,
71 | child: Column(
72 | crossAxisAlignment: CrossAxisAlignment.start,
73 | children: [
74 | KeyValueLine(
75 | k: 'Device:',
76 | v: _deviceInfo.device ?? '',
77 | theme: theme,
78 | ),
79 | KeyValueLine(
80 | k: 'Model:',
81 | v: _deviceInfo.model ?? '',
82 | theme: theme,
83 | ),
84 | KeyValueLine(
85 | k: 'Product:',
86 | v: _deviceInfo.product ?? '',
87 | theme: theme,
88 | ),
89 | KeyValueLine(
90 | k: 'Version:',
91 | v: _deviceInfo.version.release ?? '',
92 | theme: theme,
93 | ),
94 | KeyValueLine(
95 | k: 'Version codename:',
96 | v: _deviceInfo.version.codename ?? '',
97 | theme: theme,
98 | ),
99 | KeyValueLine(
100 | k: 'Version incremental:',
101 | v: _deviceInfo.version.incremental ?? '',
102 | theme: theme,
103 | ),
104 | KeyValueLine(
105 | k: 'Version securityPatch:',
106 | v: _deviceInfo.version.securityPatch ?? '',
107 | theme: theme,
108 | ),
109 | KeyValueLine(
110 | k: 'Version previewSdkInt:',
111 | v: '${_deviceInfo.version.previewSdkInt}',
112 | theme: theme,
113 | ),
114 | KeyValueLine(
115 | k: 'Version baseOS:',
116 | v: _deviceInfo.version.baseOS ?? '',
117 | theme: theme,
118 | ),
119 |
120 | // KeyValueLine(k: 'Identifier fro vendor:', v: _di.identifierForVendor),
121 | // KeyValueLine(k: 'Localized model:', v: _di.localizedModel),
122 | KeyValueLine(
123 | k: 'Device foundation:',
124 | v: (_deviceInfo.isPhysicalDevice ?? false)
125 | ? 'Physical'
126 | : 'Emulator',
127 | theme: theme,
128 | ),
129 | ]
130 | .map(
131 | (e) => Padding(
132 | padding: const EdgeInsets.only(bottom: 2.0),
133 | child: e,
134 | ),
135 | )
136 | .toList(),
137 | ),
138 | );
139 | }
140 | }
141 |
142 | class _IosInfoBody extends StatelessWidget {
143 | const _IosInfoBody({
144 | Key? key,
145 | required IosDeviceInfo iosDeviceInfo,
146 | required this.theme,
147 | }) : _deviceInfo = iosDeviceInfo,
148 | super(key: key);
149 |
150 | final IosDeviceInfo _deviceInfo;
151 | final DebugFriendTheme theme;
152 |
153 | @override
154 | Widget build(BuildContext context) {
155 | final size = MediaQuery.of(context).size;
156 | return SizedBox(
157 | width: size.width,
158 | child: Column(
159 | crossAxisAlignment: CrossAxisAlignment.start,
160 | children: [
161 | KeyValueLine(
162 | k: 'Model:',
163 | v: _deviceInfo.model ?? '',
164 | theme: theme,
165 | ),
166 | KeyValueLine(
167 | k: 'Name:',
168 | v: _deviceInfo.name ?? '',
169 | theme: theme,
170 | ),
171 | KeyValueLine(
172 | k: 'System name:',
173 | v: _deviceInfo.systemName ?? '',
174 | theme: theme,
175 | ),
176 | KeyValueLine(
177 | k: 'System version:',
178 | v: _deviceInfo.systemVersion ?? '',
179 | theme: theme,
180 | ),
181 | KeyValueLine(
182 | k: 'Identifier fro vendor:',
183 | v: _deviceInfo.identifierForVendor ?? '',
184 | theme: theme,
185 | ),
186 | KeyValueLine(
187 | k: 'Localized model:',
188 | v: _deviceInfo.localizedModel ?? '',
189 | theme: theme,
190 | ),
191 | KeyValueLine(
192 | k: 'Device foundation:',
193 | v: _deviceInfo.isPhysicalDevice ? 'Physical' : 'Emulator',
194 | theme: theme,
195 | ),
196 | ]
197 | .map(
198 | (e) => Padding(
199 | padding: const EdgeInsets.only(bottom: 2.0),
200 | child: e,
201 | ),
202 | )
203 | .toList(),
204 | ),
205 | );
206 | }
207 | }
208 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/app_info/package_info_body.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:debug_friend/src/widgets/widgets.dart';
3 | import 'package:flutter/material.dart';
4 | import 'package:package_info_plus/package_info_plus.dart';
5 |
6 | class PackageInfoBody extends StatelessWidget {
7 | const PackageInfoBody({
8 | Key? key,
9 | required this.theme,
10 | this.packageInfo,
11 | }) : super(key: key);
12 |
13 | final DebugFriendTheme theme;
14 | final PackageInfo? packageInfo;
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | return Column(
19 | crossAxisAlignment: CrossAxisAlignment.start,
20 | children: [
21 | Padding(
22 | padding: const EdgeInsets.symmetric(horizontal: 16.0),
23 | child: Text(
24 | 'Package info',
25 | style: theme.headerStyle,
26 | ),
27 | ),
28 | CommonActionBody(
29 | theme: theme,
30 | child: SizedBox(
31 | width: double.infinity,
32 | child: _PackageInfoBody(
33 | packageInfo: packageInfo,
34 | theme: theme,
35 | ),
36 | ),
37 | ),
38 | ],
39 | );
40 | }
41 | }
42 |
43 | class _PackageInfoBody extends StatelessWidget {
44 | const _PackageInfoBody({
45 | Key? key,
46 | required PackageInfo? packageInfo,
47 | required this.theme,
48 | }) : _packageInfo = packageInfo,
49 | super(key: key);
50 |
51 | final PackageInfo? _packageInfo;
52 | final DebugFriendTheme theme;
53 |
54 | @override
55 | Widget build(BuildContext context) {
56 | if (_packageInfo == null) {
57 | return const SizedBox();
58 | }
59 | final pi = _packageInfo!;
60 | return Column(
61 | children: [
62 | KeyValueLine(k: 'App name:', v: pi.appName, theme: theme),
63 | KeyValueLine(k: 'Vaerion:', v: pi.version, theme: theme),
64 | KeyValueLine(k: 'Build number:', v: pi.buildNumber, theme: theme),
65 | KeyValueLine(k: 'Package name:', v: pi.packageName, theme: theme),
66 | ],
67 | );
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/common_action_body.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:debug_friend/src/theme/defaults.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | class CommonActionBody extends StatelessWidget {
6 | const CommonActionBody({
7 | Key? key,
8 | required this.child,
9 | required this.theme,
10 | this.margin,
11 | }) : super(key: key);
12 |
13 | final DebugFriendTheme theme;
14 | final Widget child;
15 | final EdgeInsets? margin;
16 |
17 | @override
18 | Widget build(BuildContext context) {
19 | return Container(
20 | padding: const EdgeInsets.all(8.0),
21 | margin: margin ?? const EdgeInsets.all(10.0),
22 | decoration: BoxDecoration(
23 | color: theme.cardColor,
24 | boxShadow: defaultShadow,
25 | borderRadius: BorderRadius.circular(10),
26 | ),
27 | child: child,
28 | );
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/actions/custom_action_body.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CustomActionBody extends StatelessWidget {
4 | const CustomActionBody({Key? key, this.cards}) : super(key: key);
5 |
6 | final List? cards;
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | if (cards == null || cards!.isEmpty) {
11 | return const Padding(
12 | padding: EdgeInsets.all(16.0),
13 | child: Text('No custom actions'),
14 | );
15 | }
16 | return Expanded(
17 | child: ListView.separated(
18 | physics: const BouncingScrollPhysics(),
19 | padding: const EdgeInsets.only(top: 10.0),
20 | itemCount: cards!.length,
21 | separatorBuilder: (_, __) => const SizedBox(height: 10),
22 | itemBuilder: (BuildContext ctx, i) {
23 | return cards![i];
24 | },
25 | ),
26 | );
27 | }
28 | }
29 |
30 | // GridView.builder(
31 | // gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
32 | // maxCrossAxisExtent: 100,
33 | // crossAxisSpacing: 10,
34 | // mainAxisSpacing: 10,
35 | // ),
36 | // itemCount: cards!.length,
37 | // itemBuilder: (BuildContext ctx, i) {
38 | // return cards![i];
39 | // },
40 | // ),
41 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/common/common.dart:
--------------------------------------------------------------------------------
1 | export 'key_value_line.dart';
2 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/common/key_value_line.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:flutter/material.dart';
3 |
4 | class KeyValueLine extends StatelessWidget {
5 | const KeyValueLine({
6 | Key? key,
7 | required this.k,
8 | required this.v,
9 | required this.theme,
10 | }) : super(key: key);
11 |
12 | final String k;
13 | final String v;
14 | final DebugFriendTheme theme;
15 |
16 | @override
17 | Widget build(BuildContext context) {
18 | return Row(
19 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
20 | children: [
21 | Expanded(
22 | child: Text(
23 | k,
24 | style: theme.bodyText,
25 | ),
26 | ),
27 | Flexible(
28 | child: Align(
29 | alignment: Alignment.centerRight,
30 | child: Text(
31 | v,
32 | textAlign: TextAlign.end,
33 | style: theme.bodyText,
34 | ),
35 | ),
36 | ),
37 | ],
38 | );
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/debug_friend.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:debug_friend/src/utils/simulation_calculator.dart';
3 | import 'package:flutter/material.dart';
4 |
5 | class DebugFriendButton extends StatefulWidget {
6 | const DebugFriendButton({
7 | required this.child,
8 | required this.onTap,
9 | required this.theme,
10 | });
11 | final Widget child;
12 | final Function() onTap;
13 | final DebugFriendTheme theme;
14 |
15 | @override
16 | _DebugFriendButtonState createState() => _DebugFriendButtonState();
17 | }
18 |
19 | class _DebugFriendButtonState extends State
20 | with SingleTickerProviderStateMixin {
21 | late AnimationController _controller;
22 | Alignment _dragAlignment = Alignment.centerRight;
23 | final _simulationCalculator = SimulationCalculator();
24 |
25 | void _runAnimation(Offset pixelsPerSecond, Size size) {
26 | _controller.drive(
27 | AlignmentTween(
28 | begin: _dragAlignment,
29 | end: _dragAlignment,
30 | ),
31 | );
32 | _setSide();
33 |
34 | final simulation =
35 | _simulationCalculator.calculateSimulation(pixelsPerSecond, size);
36 | _controller.animateWith(simulation);
37 | }
38 |
39 | @override
40 | void initState() {
41 | super.initState();
42 | _controller = AnimationController(vsync: this);
43 | _setSide();
44 | }
45 |
46 | @override
47 | void dispose() {
48 | _controller.dispose();
49 | super.dispose();
50 | }
51 |
52 | @override
53 | Widget build(BuildContext context) {
54 | final size = MediaQuery.of(context).size;
55 |
56 | return GestureDetector(
57 | onPanDown: (details) {
58 | _controller.stop();
59 | },
60 | onPanUpdate: (DragUpdateDetails details) {
61 | _setPosition(details, size);
62 | },
63 | onPanEnd: (details) {
64 | _runAnimation(details.velocity.pixelsPerSecond, size);
65 | },
66 | onTap: widget.onTap,
67 | child: Align(
68 | alignment: _dragAlignment,
69 | child: DecoratedBox(
70 | decoration: BoxDecoration(
71 | color: widget.theme.primaryColor,
72 | shape: BoxShape.circle,
73 | ),
74 | child: widget.child,
75 | ),
76 | ),
77 | );
78 | }
79 |
80 | void _setSide() {
81 | final isLeft = _dragAlignment.x < 0.0;
82 | if (isLeft) {
83 | setState(() {
84 | _dragAlignment = Alignment(
85 | -0.95,
86 | _dragAlignment.y,
87 | );
88 | });
89 | } else {
90 | setState(() {
91 | _dragAlignment = Alignment(
92 | 0.95,
93 | _dragAlignment.y,
94 | );
95 | });
96 | }
97 | }
98 |
99 | void _setPosition(DragUpdateDetails details, Size size) {
100 | setState(
101 | () {
102 | _dragAlignment += Alignment(
103 | details.delta.dx / (size.width / 2),
104 | details.delta.dy / (size.height / 2),
105 | );
106 | },
107 | );
108 | }
109 | }
110 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/debug_friend_view.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:debug_friend/src/utils/utils.dart';
3 | import 'package:debug_friend/src/widgets/widgets.dart';
4 | import 'package:flutter/foundation.dart';
5 | import 'package:flutter/material.dart';
6 |
7 | /// Wraps your application in the debug friend zone
8 | ///
9 | /// {@tool snippet}
10 | ///
11 | /// This sample shows how to define an app with a plugin.
12 | ///
13 | /// ```dart
14 | ///DebugFriendView(
15 | /// builder: (context) {
16 | /// return const Scaffold(
17 | /// body: Text('Your app home widget'),
18 | /// );
19 | /// },
20 | /// ),
21 | /// ```
22 | /// {@end-tool}
23 | class DebugFriendView extends StatefulWidget {
24 | DebugFriendView({
25 | Key? key,
26 | this.icon = const Icon(Icons.bug_report),
27 | required this.builder,
28 | this.enabled = kDebugMode,
29 | // this.customActions,
30 | this.theme,
31 | }) : _bottomSheetManager = BottomSheetManager(),
32 | super(key: key);
33 |
34 | /// Widget that displayed at DebugFriend action header
35 | final Widget icon;
36 |
37 | /// Should return your application widget for which DebugFriend is applied
38 | final WidgetBuilder builder;
39 |
40 | /// When this field is [true] - debug friend is running in your app
41 | /// in other case - [DebugFriendButton] going sleep
42 | /// By default this field get value from const [kDebugMode]
43 | final bool enabled;
44 |
45 | // /// Custom actions menu items
46 | // /// They are shown on the 4th page of the menu
47 | // final List? customActions;
48 |
49 | final DebugFriendTheme? theme;
50 |
51 | final BottomSheetManager _bottomSheetManager;
52 |
53 | @override
54 | State createState() => _DebugFriendViewState();
55 | }
56 |
57 | class _DebugFriendViewState extends State {
58 | @override
59 | void initState() {
60 | if (widget.enabled) {
61 | WidgetsBinding.instance.addPostFrameCallback(
62 | (timeStamp) => _insertOverlay(context),
63 | );
64 | }
65 | super.initState();
66 | }
67 |
68 | @override
69 | Widget build(BuildContext context) {
70 | return widget.builder.call(context);
71 | }
72 |
73 | void _insertOverlay(BuildContext context) {
74 | final theme = widget.theme ?? DebugFriendTheme.fromFlutterTheme(context);
75 | return Overlay.of(context)!.insert(
76 | OverlayEntry(
77 | builder: (context) {
78 | return DebugFriendButton(
79 | theme: theme,
80 | onTap: () => _onButtonTap(context, theme),
81 | child: widget.icon,
82 | );
83 | },
84 | ),
85 | );
86 | }
87 |
88 | void _onButtonTap(BuildContext context, DebugFriendTheme theme) {
89 | widget._bottomSheetManager.showBottomSheet(
90 | context,
91 | theme: theme,
92 | builder: (ctx) {
93 | return DebugFriendMenu(
94 | theme: theme,
95 | headers: const [
96 | Icons.app_settings_alt,
97 | Icons.folder_open,
98 | Icons.touch_app,
99 | // Icons.extension,
100 | ],
101 | bodies: [
102 | AppInfoBody(theme: theme),
103 | AppDataBody(theme: theme),
104 | AppActionsBody(theme: theme),
105 | // CustomActionBody(cards: widget.customActions),
106 | ],
107 | );
108 | },
109 | );
110 | }
111 | }
112 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/debug_menu.dart:
--------------------------------------------------------------------------------
1 | import 'package:debug_friend/debug_friend.dart';
2 | import 'package:debug_friend/src/theme/defaults.dart';
3 | import 'package:debug_friend/src/widgets/action_headers/action_headers.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | class DebugFriendMenu extends StatefulWidget {
7 | const DebugFriendMenu({
8 | Key? key,
9 | required this.bodies,
10 | required this.headers,
11 | required this.theme,
12 | }) : super(key: key);
13 |
14 | final List bodies;
15 | final List headers;
16 | final DebugFriendTheme theme;
17 |
18 | @override
19 | _DebugFriendMenuState createState() => _DebugFriendMenuState();
20 | }
21 |
22 | class _DebugFriendMenuState extends State {
23 | int _selectedIndex = 0;
24 |
25 | void _closeMenu(BuildContext context) {
26 | Navigator.pop(context);
27 | }
28 |
29 | @override
30 | Widget build(BuildContext context) {
31 | final size = MediaQuery.of(context).size;
32 | return SizedBox(
33 | height: size.height * 0.9,
34 | child: Column(
35 | crossAxisAlignment: CrossAxisAlignment.start,
36 | children: [
37 | Container(
38 | width: size.width,
39 | transform: Matrix4.translationValues(0, -20, 0),
40 | margin: const EdgeInsets.symmetric(horizontal: 10),
41 | padding: const EdgeInsets.symmetric(vertical: 2),
42 | decoration: BoxDecoration(
43 | color: widget.theme.cardColor,
44 | borderRadius: BorderRadius.circular(10),
45 | boxShadow: defaultShadow,
46 | ),
47 | child: Row(
48 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
49 | children: [
50 | _Title(
51 | title: 'Debug Menu',
52 | style: widget.theme.headerStyle,
53 | ),
54 | IconButton(
55 | onPressed: () => _closeMenu(context),
56 | icon: const Icon(
57 | Icons.close,
58 | color: Colors.white,
59 | ),
60 | ),
61 | ],
62 | ),
63 | ),
64 | Transform(
65 | transform: Matrix4.translationValues(0, -10, 0),
66 | child: SizedBox(
67 | child: SingleChildScrollView(
68 | padding: EdgeInsets.zero,
69 | scrollDirection: Axis.horizontal,
70 | child: Row(
71 | children: widget.headers
72 | .asMap()
73 | .entries
74 | .map(
75 | (e) => GestureDetector(
76 | onTap: () => setState(() => _selectedIndex = e.key),
77 | child: CommonActionHeader(
78 | theme: widget.theme,
79 | selected: _selectedIndex == e.key,
80 | icon: Icon(e.value, color: Colors.white),
81 | ),
82 | ),
83 | )
84 | .toList(),
85 | ),
86 | ),
87 | ),
88 | ),
89 | Padding(
90 | padding: const EdgeInsets.symmetric(
91 | horizontal: 10.0,
92 | ).copyWith(top: 6.0),
93 | child: const Divider(height: 0),
94 | ),
95 | widget.bodies[_selectedIndex],
96 | ],
97 | ),
98 | );
99 | }
100 | }
101 |
102 | class _Title extends StatelessWidget {
103 | const _Title({
104 | Key? key,
105 | required this.title,
106 | this.style,
107 | }) : super(key: key);
108 |
109 | final String title;
110 | final TextStyle? style;
111 |
112 | @override
113 | Widget build(BuildContext context) {
114 | final theme = Theme.of(context);
115 | return Padding(
116 | padding: const EdgeInsets.all(15.0),
117 | child: Text(
118 | title,
119 | style: style ?? theme.textTheme.bodyText1,
120 | ),
121 | );
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/packages/debug_friend/lib/src/widgets/widgets.dart:
--------------------------------------------------------------------------------
1 | export 'action_card/action_card.dart';
2 | export 'action_headers/action_headers.dart';
3 | export 'actions/actions.dart';
4 | export 'common/common.dart';
5 | export 'debug_friend.dart';
6 | export 'debug_friend_view.dart';
7 | export 'debug_menu.dart';
8 |
--------------------------------------------------------------------------------
/packages/debug_friend/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | ansicolor:
5 | dependency: transitive
6 | description:
7 | name: ansicolor
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "2.0.1"
11 | async:
12 | dependency: transitive
13 | description:
14 | name: async
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "2.9.0"
18 | boolean_selector:
19 | dependency: transitive
20 | description:
21 | name: boolean_selector
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.1.0"
25 | characters:
26 | dependency: transitive
27 | description:
28 | name: characters
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.2.1"
32 | charcode:
33 | dependency: transitive
34 | description:
35 | name: charcode
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "1.3.1"
39 | clock:
40 | dependency: transitive
41 | description:
42 | name: clock
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "1.1.1"
46 | collection:
47 | dependency: transitive
48 | description:
49 | name: collection
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "1.16.0"
53 | device_info_plus:
54 | dependency: "direct main"
55 | description:
56 | name: device_info_plus
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "4.1.2"
60 | device_info_plus_linux:
61 | dependency: transitive
62 | description:
63 | name: device_info_plus_linux
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "3.0.0"
67 | device_info_plus_macos:
68 | dependency: transitive
69 | description:
70 | name: device_info_plus_macos
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "3.0.0"
74 | device_info_plus_platform_interface:
75 | dependency: transitive
76 | description:
77 | name: device_info_plus_platform_interface
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "3.0.0"
81 | device_info_plus_web:
82 | dependency: transitive
83 | description:
84 | name: device_info_plus_web
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "3.0.0"
88 | device_info_plus_windows:
89 | dependency: transitive
90 | description:
91 | name: device_info_plus_windows
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "4.0.0"
95 | fake_async:
96 | dependency: transitive
97 | description:
98 | name: fake_async
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "1.3.1"
102 | ffi:
103 | dependency: transitive
104 | description:
105 | name: ffi
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "2.0.1"
109 | file:
110 | dependency: transitive
111 | description:
112 | name: file
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "6.1.2"
116 | flutter:
117 | dependency: "direct main"
118 | description: flutter
119 | source: sdk
120 | version: "0.0.0"
121 | flutter_test:
122 | dependency: "direct dev"
123 | description: flutter
124 | source: sdk
125 | version: "0.0.0"
126 | flutter_web_plugins:
127 | dependency: transitive
128 | description: flutter
129 | source: sdk
130 | version: "0.0.0"
131 | group_button:
132 | dependency: transitive
133 | description:
134 | name: group_button
135 | url: "https://pub.dartlang.org"
136 | source: hosted
137 | version: "5.2.0"
138 | http:
139 | dependency: transitive
140 | description:
141 | name: http
142 | url: "https://pub.dartlang.org"
143 | source: hosted
144 | version: "0.13.3"
145 | http_parser:
146 | dependency: transitive
147 | description:
148 | name: http_parser
149 | url: "https://pub.dartlang.org"
150 | source: hosted
151 | version: "4.0.0"
152 | js:
153 | dependency: transitive
154 | description:
155 | name: js
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "0.6.4"
159 | lint:
160 | dependency: "direct main"
161 | description:
162 | name: lint
163 | url: "https://pub.dartlang.org"
164 | source: hosted
165 | version: "1.10.0"
166 | matcher:
167 | dependency: transitive
168 | description:
169 | name: matcher
170 | url: "https://pub.dartlang.org"
171 | source: hosted
172 | version: "0.12.12"
173 | material_color_utilities:
174 | dependency: transitive
175 | description:
176 | name: material_color_utilities
177 | url: "https://pub.dartlang.org"
178 | source: hosted
179 | version: "0.1.5"
180 | meta:
181 | dependency: transitive
182 | description:
183 | name: meta
184 | url: "https://pub.dartlang.org"
185 | source: hosted
186 | version: "1.8.0"
187 | package_info_plus:
188 | dependency: "direct main"
189 | description:
190 | name: package_info_plus
191 | url: "https://pub.dartlang.org"
192 | source: hosted
193 | version: "1.4.3+1"
194 | package_info_plus_linux:
195 | dependency: transitive
196 | description:
197 | name: package_info_plus_linux
198 | url: "https://pub.dartlang.org"
199 | source: hosted
200 | version: "1.0.5"
201 | package_info_plus_macos:
202 | dependency: transitive
203 | description:
204 | name: package_info_plus_macos
205 | url: "https://pub.dartlang.org"
206 | source: hosted
207 | version: "1.3.0"
208 | package_info_plus_platform_interface:
209 | dependency: transitive
210 | description:
211 | name: package_info_plus_platform_interface
212 | url: "https://pub.dartlang.org"
213 | source: hosted
214 | version: "1.0.2"
215 | package_info_plus_web:
216 | dependency: transitive
217 | description:
218 | name: package_info_plus_web
219 | url: "https://pub.dartlang.org"
220 | source: hosted
221 | version: "1.0.5"
222 | package_info_plus_windows:
223 | dependency: transitive
224 | description:
225 | name: package_info_plus_windows
226 | url: "https://pub.dartlang.org"
227 | source: hosted
228 | version: "2.0.0"
229 | path:
230 | dependency: transitive
231 | description:
232 | name: path
233 | url: "https://pub.dartlang.org"
234 | source: hosted
235 | version: "1.8.2"
236 | path_provider:
237 | dependency: "direct main"
238 | description:
239 | name: path_provider
240 | url: "https://pub.dartlang.org"
241 | source: hosted
242 | version: "2.0.11"
243 | path_provider_android:
244 | dependency: transitive
245 | description:
246 | name: path_provider_android
247 | url: "https://pub.dartlang.org"
248 | source: hosted
249 | version: "2.0.9"
250 | path_provider_ios:
251 | dependency: transitive
252 | description:
253 | name: path_provider_ios
254 | url: "https://pub.dartlang.org"
255 | source: hosted
256 | version: "2.0.7"
257 | path_provider_linux:
258 | dependency: transitive
259 | description:
260 | name: path_provider_linux
261 | url: "https://pub.dartlang.org"
262 | source: hosted
263 | version: "2.0.2"
264 | path_provider_macos:
265 | dependency: transitive
266 | description:
267 | name: path_provider_macos
268 | url: "https://pub.dartlang.org"
269 | source: hosted
270 | version: "2.0.2"
271 | path_provider_platform_interface:
272 | dependency: transitive
273 | description:
274 | name: path_provider_platform_interface
275 | url: "https://pub.dartlang.org"
276 | source: hosted
277 | version: "2.0.1"
278 | path_provider_windows:
279 | dependency: transitive
280 | description:
281 | name: path_provider_windows
282 | url: "https://pub.dartlang.org"
283 | source: hosted
284 | version: "2.1.2"
285 | pedantic:
286 | dependency: transitive
287 | description:
288 | name: pedantic
289 | url: "https://pub.dartlang.org"
290 | source: hosted
291 | version: "1.11.1"
292 | platform:
293 | dependency: transitive
294 | description:
295 | name: platform
296 | url: "https://pub.dartlang.org"
297 | source: hosted
298 | version: "3.0.2"
299 | plugin_platform_interface:
300 | dependency: transitive
301 | description:
302 | name: plugin_platform_interface
303 | url: "https://pub.dartlang.org"
304 | source: hosted
305 | version: "2.0.1"
306 | process:
307 | dependency: transitive
308 | description:
309 | name: process
310 | url: "https://pub.dartlang.org"
311 | source: hosted
312 | version: "4.2.3"
313 | sky_engine:
314 | dependency: transitive
315 | description: flutter
316 | source: sdk
317 | version: "0.0.99"
318 | source_span:
319 | dependency: transitive
320 | description:
321 | name: source_span
322 | url: "https://pub.dartlang.org"
323 | source: hosted
324 | version: "1.9.0"
325 | stack_trace:
326 | dependency: transitive
327 | description:
328 | name: stack_trace
329 | url: "https://pub.dartlang.org"
330 | source: hosted
331 | version: "1.10.0"
332 | stream_channel:
333 | dependency: transitive
334 | description:
335 | name: stream_channel
336 | url: "https://pub.dartlang.org"
337 | source: hosted
338 | version: "2.1.0"
339 | string_scanner:
340 | dependency: transitive
341 | description:
342 | name: string_scanner
343 | url: "https://pub.dartlang.org"
344 | source: hosted
345 | version: "1.1.1"
346 | talker:
347 | dependency: "direct main"
348 | description:
349 | name: talker
350 | url: "https://pub.dartlang.org"
351 | source: hosted
352 | version: "1.3.0+1"
353 | talker_flutter:
354 | dependency: "direct main"
355 | description:
356 | name: talker_flutter
357 | url: "https://pub.dartlang.org"
358 | source: hosted
359 | version: "1.6.0"
360 | talker_logger:
361 | dependency: transitive
362 | description:
363 | name: talker_logger
364 | url: "https://pub.dartlang.org"
365 | source: hosted
366 | version: "1.2.1"
367 | term_glyph:
368 | dependency: transitive
369 | description:
370 | name: term_glyph
371 | url: "https://pub.dartlang.org"
372 | source: hosted
373 | version: "1.2.1"
374 | test_api:
375 | dependency: transitive
376 | description:
377 | name: test_api
378 | url: "https://pub.dartlang.org"
379 | source: hosted
380 | version: "0.4.12"
381 | typed_data:
382 | dependency: transitive
383 | description:
384 | name: typed_data
385 | url: "https://pub.dartlang.org"
386 | source: hosted
387 | version: "1.3.0"
388 | vector_math:
389 | dependency: transitive
390 | description:
391 | name: vector_math
392 | url: "https://pub.dartlang.org"
393 | source: hosted
394 | version: "2.1.2"
395 | win32:
396 | dependency: transitive
397 | description:
398 | name: win32
399 | url: "https://pub.dartlang.org"
400 | source: hosted
401 | version: "2.7.0"
402 | xdg_directories:
403 | dependency: transitive
404 | description:
405 | name: xdg_directories
406 | url: "https://pub.dartlang.org"
407 | source: hosted
408 | version: "0.2.0"
409 | sdks:
410 | dart: ">=2.17.0 <3.0.0"
411 | flutter: ">=3.0.0"
412 |
--------------------------------------------------------------------------------
/packages/debug_friend/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: debug_friend
2 | description: Flutter debug helper widget with device info, common and custom actions.
3 | version: 1.0.0
4 | homepage: https://github.com/Frezyx/debug_friend
5 |
6 | environment:
7 | sdk: ">=2.12.0 <3.0.0"
8 |
9 | dependencies:
10 | flutter:
11 | sdk: flutter
12 | device_info_plus: ^4.1.2
13 | package_info_plus: ^1.4.3+1
14 | path_provider: ^2.0.11
15 | lint: ^1.10.0
16 | talker: ^1.3.0+1
17 | talker_flutter: ^1.6.0
18 |
19 | dev_dependencies:
20 | flutter_test:
21 | sdk: flutter
22 |
23 | flutter:
--------------------------------------------------------------------------------
/packages/flutter_admin/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 | migrate_working_dir/
12 |
13 | # IntelliJ related
14 | *.iml
15 | *.ipr
16 | *.iws
17 | .idea/
18 |
19 | # The .vscode folder contains launch configuration and tasks you configure in
20 | # VS Code which you may wish to be included in version control, so this line
21 | # is commented out by default.
22 | #.vscode/
23 |
24 | # Flutter/Dart/Pub related
25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26 | /pubspec.lock
27 | **/doc/api/
28 | .dart_tool/
29 | .packages
30 | build/
31 |
--------------------------------------------------------------------------------
/packages/flutter_admin/.metadata:
--------------------------------------------------------------------------------
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: ffccd96b62ee8cec7740dab303538c5fc26ac543
8 | channel: stable
9 |
10 | project_type: package
11 |
--------------------------------------------------------------------------------
/packages/flutter_admin/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 0.1.0-dev.1
2 |
3 | * Init package
4 |
--------------------------------------------------------------------------------
/packages/flutter_admin/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Stanislav Ilin
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/flutter_admin/README.md:
--------------------------------------------------------------------------------
1 | Flutter application admin panel
2 | Package under development
3 |
4 | ## Features
5 |
6 | ## Getting started
7 |
8 | ## Usage
9 |
10 | ## Additional information
11 |
--------------------------------------------------------------------------------
/packages/flutter_admin/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:flutter_lints/flutter.yaml
2 |
3 | # Additional information about this file can be found at
4 | # https://dart.dev/guides/language/analysis-options
5 |
--------------------------------------------------------------------------------
/packages/flutter_admin/lib/flutter_admin.dart:
--------------------------------------------------------------------------------
1 | library flutter_admin;
2 |
--------------------------------------------------------------------------------
/packages/flutter_admin/lib/src/widgets/flutter_admin_bar/flutter_admin_bar.dart:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Frezyx/flutter_admin/413d4778fb119c164d37104b63aab86dce2a8ab7/packages/flutter_admin/lib/src/widgets/flutter_admin_bar/flutter_admin_bar.dart
--------------------------------------------------------------------------------
/packages/flutter_admin/lib/src/widgets/widgets.dart:
--------------------------------------------------------------------------------
1 | export 'flutter_admin_bar/flutter_admin_bar.dart';
2 |
--------------------------------------------------------------------------------
/packages/flutter_admin/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_admin
2 | description: Flutter application admin panel
3 | version: 0.1.0-dev.1
4 | homepage: https://github.com/Frezyx/flutter_admin
5 |
6 | environment:
7 | sdk: '>=2.12.0 <3.0.0'
8 | flutter: ">=1.17.0"
9 |
10 | dependencies:
11 | flutter:
12 | sdk: flutter
13 |
14 | dev_dependencies:
15 | flutter_test:
16 | sdk: flutter
17 | flutter_lints: ^2.0.0
18 |
19 | flutter:
--------------------------------------------------------------------------------