@ -0,0 +1,44 @@ |
|||
# Miscellaneous |
|||
*.class |
|||
*.log |
|||
*.pyc |
|||
*.swp |
|||
.DS_Store |
|||
.atom/ |
|||
.buildlog/ |
|||
.history |
|||
.svn/ |
|||
migrate_working_dir/ |
|||
|
|||
# IntelliJ related |
|||
*.iml |
|||
*.ipr |
|||
*.iws |
|||
.idea/ |
|||
|
|||
# The .vscode folder contains launch configuration and tasks you configure in |
|||
# VS Code which you may wish to be included in version control, so this line |
|||
# is commented out by default. |
|||
#.vscode/ |
|||
|
|||
# Flutter/Dart/Pub related |
|||
**/doc/api/ |
|||
**/ios/Flutter/.last_build_id |
|||
.dart_tool/ |
|||
.flutter-plugins |
|||
.flutter-plugins-dependencies |
|||
.packages |
|||
.pub-cache/ |
|||
.pub/ |
|||
/build/ |
|||
|
|||
# Symbolication related |
|||
app.*.symbols |
|||
|
|||
# Obfuscation related |
|||
app.*.map.json |
|||
|
|||
# Android Studio will place build artifacts here |
|||
/android/app/debug |
|||
/android/app/profile |
|||
/android/app/release |
|||
@ -0,0 +1,45 @@ |
|||
# This file tracks properties of this Flutter project. |
|||
# Used by Flutter tool to assess capabilities and perform upgrades etc. |
|||
# |
|||
# This file should be version controlled. |
|||
|
|||
version: |
|||
revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
channel: stable |
|||
|
|||
project_type: app |
|||
|
|||
# Tracks metadata for the flutter migrate command |
|||
migration: |
|||
platforms: |
|||
- platform: root |
|||
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
- platform: android |
|||
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
- platform: ios |
|||
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
- platform: linux |
|||
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
- platform: macos |
|||
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
- platform: web |
|||
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
- platform: windows |
|||
create_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
base_revision: f468f3366c26a5092eb964a230ce7892fda8f2f8 |
|||
|
|||
# User provided section |
|||
|
|||
# List of Local paths (relative to this file) that should be |
|||
# ignored by the migrate tool. |
|||
# |
|||
# Files that are not part of the templates will be ignored by default. |
|||
unmanaged_files: |
|||
- 'lib/main.dart' |
|||
- 'ios/Runner.xcodeproj/project.pbxproj' |
|||
@ -0,0 +1,16 @@ |
|||
# cpayflutter |
|||
|
|||
A new Flutter project. |
|||
|
|||
## Getting Started |
|||
|
|||
This project is a starting point for a Flutter application. |
|||
|
|||
A few resources to get you started if this is your first Flutter project: |
|||
|
|||
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) |
|||
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) |
|||
|
|||
For help getting started with Flutter development, view the |
|||
[online documentation](https://docs.flutter.dev/), which offers tutorials, |
|||
samples, guidance on mobile development, and a full API reference. |
|||
@ -0,0 +1,29 @@ |
|||
# This file configures the analyzer, which statically analyzes Dart code to |
|||
# check for errors, warnings, and lints. |
|||
# |
|||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled |
|||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be |
|||
# invoked from the command line by running `flutter analyze`. |
|||
|
|||
# The following line activates a set of recommended lints for Flutter apps, |
|||
# packages, and plugins designed to encourage good coding practices. |
|||
include: package:flutter_lints/flutter.yaml |
|||
|
|||
linter: |
|||
# The lint rules applied to this project can be customized in the |
|||
# section below to disable rules from the `package:flutter_lints/flutter.yaml` |
|||
# included above or to enable additional rules. A list of all available lints |
|||
# and their documentation is published at |
|||
# https://dart-lang.github.io/linter/lints/index.html. |
|||
# |
|||
# Instead of disabling a lint rule for the entire project in the |
|||
# section below, it can also be suppressed for a single line of code |
|||
# or a specific dart file by using the `// ignore: name_of_lint` and |
|||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file |
|||
# producing the lint. |
|||
rules: |
|||
# avoid_print: false # Uncomment to disable the `avoid_print` rule |
|||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule |
|||
|
|||
# Additional information about this file can be found at |
|||
# https://dart.dev/guides/language/analysis-options |
|||
@ -0,0 +1,13 @@ |
|||
gradle-wrapper.jar |
|||
/.gradle |
|||
/captures/ |
|||
/gradlew |
|||
/gradlew.bat |
|||
/local.properties |
|||
GeneratedPluginRegistrant.java |
|||
|
|||
# Remember to never publicly share your keystore. |
|||
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app |
|||
key.properties |
|||
**/*.keystore |
|||
**/*.jks |
|||
@ -0,0 +1,72 @@ |
|||
def localProperties = new Properties() |
|||
def localPropertiesFile = rootProject.file('local.properties') |
|||
if (localPropertiesFile.exists()) { |
|||
localPropertiesFile.withReader('UTF-8') { reader -> |
|||
localProperties.load(reader) |
|||
} |
|||
} |
|||
|
|||
def flutterRoot = localProperties.getProperty('flutter.sdk') |
|||
if (flutterRoot == null) { |
|||
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") |
|||
} |
|||
|
|||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode') |
|||
if (flutterVersionCode == null) { |
|||
flutterVersionCode = '1' |
|||
} |
|||
|
|||
def flutterVersionName = localProperties.getProperty('flutter.versionName') |
|||
if (flutterVersionName == null) { |
|||
flutterVersionName = '1.0' |
|||
} |
|||
|
|||
apply plugin: 'com.android.application' |
|||
apply plugin: 'kotlin-android' |
|||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" |
|||
|
|||
android { |
|||
namespace "com.example.cpayflutter" |
|||
compileSdkVersion flutter.compileSdkVersion |
|||
ndkVersion flutter.ndkVersion |
|||
|
|||
compileOptions { |
|||
sourceCompatibility JavaVersion.VERSION_1_8 |
|||
targetCompatibility JavaVersion.VERSION_1_8 |
|||
} |
|||
|
|||
kotlinOptions { |
|||
jvmTarget = '1.8' |
|||
} |
|||
|
|||
sourceSets { |
|||
main.java.srcDirs += 'src/main/kotlin' |
|||
} |
|||
|
|||
defaultConfig { |
|||
applicationId "com.example.cpayflutter" |
|||
|
|||
minSdk 20 |
|||
targetSdk 34 |
|||
|
|||
versionCode flutterVersionCode.toInteger() |
|||
versionName flutterVersionName |
|||
} |
|||
|
|||
|
|||
buildTypes { |
|||
release { |
|||
// TODO: Add your own signing config for the release build. |
|||
// Signing with the debug keys for now, so `flutter run --release` works. |
|||
signingConfig signingConfigs.debug |
|||
} |
|||
} |
|||
} |
|||
|
|||
flutter { |
|||
source '../..' |
|||
} |
|||
|
|||
dependencies { |
|||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
|||
<!-- The INTERNET permission is required for development. Specifically, |
|||
the Flutter tool needs it to communicate with the running application |
|||
to allow setting breakpoints, to provide hot reload, etc. |
|||
--> |
|||
<uses-permission android:name="android.permission.INTERNET"/> |
|||
</manifest> |
|||
@ -0,0 +1,34 @@ |
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
|||
<uses-permission android:name="android.permission.INTERNET"/> |
|||
<application |
|||
android:label="cpay" |
|||
android:name="${applicationName}" |
|||
android:icon="@mipmap/cpay"> |
|||
<activity |
|||
android:name=".MainActivity" |
|||
android:exported="true" |
|||
android:launchMode="singleTop" |
|||
android:theme="@style/LaunchTheme" |
|||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" |
|||
android:hardwareAccelerated="true" |
|||
android:windowSoftInputMode="adjustResize"> |
|||
<!-- Specifies an Android theme to apply to this Activity as soon as |
|||
the Android process has started. This theme is visible to the user |
|||
while the Flutter UI initializes. After that, this theme continues |
|||
to determine the Window background behind the Flutter UI. --> |
|||
<meta-data |
|||
android:name="io.flutter.embedding.android.NormalTheme" |
|||
android:resource="@style/NormalTheme" |
|||
/> |
|||
<intent-filter> |
|||
<action android:name="android.intent.action.MAIN"/> |
|||
<category android:name="android.intent.category.LAUNCHER"/> |
|||
</intent-filter> |
|||
</activity> |
|||
<!-- Don't delete the meta-data below. |
|||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> |
|||
<meta-data |
|||
android:name="flutterEmbedding" |
|||
android:value="2" /> |
|||
</application> |
|||
</manifest> |
|||
@ -0,0 +1,6 @@ |
|||
package com.example.cpayflutter |
|||
|
|||
import io.flutter.embedding.android.FlutterActivity |
|||
|
|||
class MainActivity: FlutterActivity() { |
|||
} |
|||
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
@ -0,0 +1,12 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- Modify this file to customize your launch splash screen --> |
|||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> |
|||
<item android:drawable="?android:colorBackground" /> |
|||
|
|||
<!-- You can insert your own image assets here --> |
|||
<!-- <item> |
|||
<bitmap |
|||
android:gravity="center" |
|||
android:src="@mipmap/launch_image" /> |
|||
</item> --> |
|||
</layer-list> |
|||
@ -0,0 +1,12 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- Modify this file to customize your launch splash screen --> |
|||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> |
|||
<item android:drawable="@android:color/white" /> |
|||
|
|||
<!-- You can insert your own image assets here --> |
|||
<!-- <item> |
|||
<bitmap |
|||
android:gravity="center" |
|||
android:src="@mipmap/launch_image" /> |
|||
</item> --> |
|||
</layer-list> |
|||
|
After Width: | Height: | Size: 544 B |
|
After Width: | Height: | Size: 544 B |
|
After Width: | Height: | Size: 442 B |
|
After Width: | Height: | Size: 442 B |
|
After Width: | Height: | Size: 721 B |
|
After Width: | Height: | Size: 721 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
@ -0,0 +1,18 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<resources> |
|||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on --> |
|||
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar"> |
|||
<!-- Show a splash screen on the activity. Automatically removed when |
|||
the Flutter engine draws its first frame --> |
|||
<item name="android:windowBackground">@drawable/launch_background</item> |
|||
</style> |
|||
<!-- Theme applied to the Android Window as soon as the process has started. |
|||
This theme determines the color of the Android Window while your |
|||
Flutter UI initializes, as well as behind your Flutter UI while its |
|||
running. |
|||
|
|||
This Theme is only used starting with V2 of Flutter's Android embedding. --> |
|||
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar"> |
|||
<item name="android:windowBackground">?android:colorBackground</item> |
|||
</style> |
|||
</resources> |
|||
@ -0,0 +1,18 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<resources> |
|||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off --> |
|||
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar"> |
|||
<!-- Show a splash screen on the activity. Automatically removed when |
|||
the Flutter engine draws its first frame --> |
|||
<item name="android:windowBackground">@drawable/launch_background</item> |
|||
</style> |
|||
<!-- Theme applied to the Android Window as soon as the process has started. |
|||
This theme determines the color of the Android Window while your |
|||
Flutter UI initializes, as well as behind your Flutter UI while its |
|||
running. |
|||
|
|||
This Theme is only used starting with V2 of Flutter's Android embedding. --> |
|||
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar"> |
|||
<item name="android:windowBackground">?android:colorBackground</item> |
|||
</style> |
|||
</resources> |
|||
@ -0,0 +1,7 @@ |
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
|||
<!-- The INTERNET permission is required for development. Specifically, |
|||
the Flutter tool needs it to communicate with the running application |
|||
to allow setting breakpoints, to provide hot reload, etc. |
|||
--> |
|||
<uses-permission android:name="android.permission.INTERNET"/> |
|||
</manifest> |
|||
@ -0,0 +1,31 @@ |
|||
buildscript { |
|||
ext.kotlin_version = '1.7.10' |
|||
repositories { |
|||
google() |
|||
mavenCentral() |
|||
} |
|||
|
|||
dependencies { |
|||
classpath 'com.android.tools.build:gradle:7.3.0' |
|||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
|||
} |
|||
} |
|||
|
|||
allprojects { |
|||
repositories { |
|||
google() |
|||
mavenCentral() |
|||
} |
|||
} |
|||
|
|||
rootProject.buildDir = '../build' |
|||
subprojects { |
|||
project.buildDir = "${rootProject.buildDir}/${project.name}" |
|||
} |
|||
subprojects { |
|||
project.evaluationDependsOn(':app') |
|||
} |
|||
|
|||
tasks.register("clean", Delete) { |
|||
delete rootProject.buildDir |
|||
} |
|||
@ -0,0 +1,3 @@ |
|||
org.gradle.jvmargs=-Xmx1536M |
|||
android.useAndroidX=true |
|||
android.enableJetifier=true |
|||
@ -0,0 +1,5 @@ |
|||
distributionBase=GRADLE_USER_HOME |
|||
distributionPath=wrapper/dists |
|||
zipStoreBase=GRADLE_USER_HOME |
|||
zipStorePath=wrapper/dists |
|||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip |
|||
@ -0,0 +1,11 @@ |
|||
include ':app' |
|||
|
|||
def localPropertiesFile = new File(rootProject.projectDir, "local.properties") |
|||
def properties = new Properties() |
|||
|
|||
assert localPropertiesFile.exists() |
|||
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } |
|||
|
|||
def flutterSdkPath = properties.getProperty("flutter.sdk") |
|||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties" |
|||
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" |
|||
@ -0,0 +1,34 @@ |
|||
**/dgph |
|||
*.mode1v3 |
|||
*.mode2v3 |
|||
*.moved-aside |
|||
*.pbxuser |
|||
*.perspectivev3 |
|||
**/*sync/ |
|||
.sconsign.dblite |
|||
.tags* |
|||
**/.vagrant/ |
|||
**/DerivedData/ |
|||
Icon? |
|||
**/Pods/ |
|||
**/.symlinks/ |
|||
profile |
|||
xcuserdata |
|||
**/.generated/ |
|||
Flutter/App.framework |
|||
Flutter/Flutter.framework |
|||
Flutter/Flutter.podspec |
|||
Flutter/Generated.xcconfig |
|||
Flutter/ephemeral/ |
|||
Flutter/app.flx |
|||
Flutter/app.zip |
|||
Flutter/flutter_assets/ |
|||
Flutter/flutter_export_environment.sh |
|||
ServiceDefinitions.json |
|||
Runner/GeneratedPluginRegistrant.* |
|||
|
|||
# Exceptions to above rules. |
|||
!default.mode1v3 |
|||
!default.mode2v3 |
|||
!default.pbxuser |
|||
!default.perspectivev3 |
|||
@ -0,0 +1,26 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
|||
<plist version="1.0"> |
|||
<dict> |
|||
<key>CFBundleDevelopmentRegion</key> |
|||
<string>en</string> |
|||
<key>CFBundleExecutable</key> |
|||
<string>App</string> |
|||
<key>CFBundleIdentifier</key> |
|||
<string>io.flutter.flutter.app</string> |
|||
<key>CFBundleInfoDictionaryVersion</key> |
|||
<string>6.0</string> |
|||
<key>CFBundleName</key> |
|||
<string>App</string> |
|||
<key>CFBundlePackageType</key> |
|||
<string>FMWK</string> |
|||
<key>CFBundleShortVersionString</key> |
|||
<string>1.0</string> |
|||
<key>CFBundleSignature</key> |
|||
<string>????</string> |
|||
<key>CFBundleVersion</key> |
|||
<string>1.0</string> |
|||
<key>MinimumOSVersion</key> |
|||
<string>11.0</string> |
|||
</dict> |
|||
</plist> |
|||
@ -0,0 +1 @@ |
|||
#include "Generated.xcconfig" |
|||
@ -0,0 +1 @@ |
|||
#include "Generated.xcconfig" |
|||
@ -0,0 +1,613 @@ |
|||
// !$*UTF8*$! |
|||
{ |
|||
archiveVersion = 1; |
|||
classes = { |
|||
}; |
|||
objectVersion = 54; |
|||
objects = { |
|||
|
|||
/* Begin PBXBuildFile section */ |
|||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; |
|||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; |
|||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; |
|||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; |
|||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; |
|||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; |
|||
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; |
|||
/* End PBXBuildFile section */ |
|||
|
|||
/* Begin PBXContainerItemProxy section */ |
|||
331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { |
|||
isa = PBXContainerItemProxy; |
|||
containerPortal = 97C146E61CF9000F007C117D /* Project object */; |
|||
proxyType = 1; |
|||
remoteGlobalIDString = 97C146ED1CF9000F007C117D; |
|||
remoteInfo = Runner; |
|||
}; |
|||
/* End PBXContainerItemProxy section */ |
|||
|
|||
/* Begin PBXCopyFilesBuildPhase section */ |
|||
9705A1C41CF9048500538489 /* Embed Frameworks */ = { |
|||
isa = PBXCopyFilesBuildPhase; |
|||
buildActionMask = 2147483647; |
|||
dstPath = ""; |
|||
dstSubfolderSpec = 10; |
|||
files = ( |
|||
); |
|||
name = "Embed Frameworks"; |
|||
runOnlyForDeploymentPostprocessing = 0; |
|||
}; |
|||
/* End PBXCopyFilesBuildPhase section */ |
|||
|
|||
/* Begin PBXFileReference section */ |
|||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; }; |
|||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; }; |
|||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; }; |
|||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; }; |
|||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; |
|||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; }; |
|||
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; }; |
|||
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; }; |
|||
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; |
|||
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; |
|||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; |
|||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; |
|||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; |
|||
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; }; |
|||
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; |
|||
/* End PBXFileReference section */ |
|||
|
|||
/* Begin PBXFrameworksBuildPhase section */ |
|||
97C146EB1CF9000F007C117D /* Frameworks */ = { |
|||
isa = PBXFrameworksBuildPhase; |
|||
buildActionMask = 2147483647; |
|||
files = ( |
|||
); |
|||
runOnlyForDeploymentPostprocessing = 0; |
|||
}; |
|||
/* End PBXFrameworksBuildPhase section */ |
|||
|
|||
/* Begin PBXGroup section */ |
|||
9740EEB11CF90186004384FC /* Flutter */ = { |
|||
isa = PBXGroup; |
|||
children = ( |
|||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, |
|||
9740EEB21CF90195004384FC /* Debug.xcconfig */, |
|||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */, |
|||
9740EEB31CF90195004384FC /* Generated.xcconfig */, |
|||
); |
|||
name = Flutter; |
|||
sourceTree = "<group>"; |
|||
}; |
|||
331C8082294A63A400263BE5 /* RunnerTests */ = { |
|||
isa = PBXGroup; |
|||
children = ( |
|||
331C807B294A618700263BE5 /* RunnerTests.swift */, |
|||
); |
|||
path = RunnerTests; |
|||
sourceTree = "<group>"; |
|||
}; |
|||
97C146E51CF9000F007C117D = { |
|||
isa = PBXGroup; |
|||
children = ( |
|||
9740EEB11CF90186004384FC /* Flutter */, |
|||
97C146F01CF9000F007C117D /* Runner */, |
|||
97C146EF1CF9000F007C117D /* Products */, |
|||
331C8082294A63A400263BE5 /* RunnerTests */, |
|||
); |
|||
sourceTree = "<group>"; |
|||
}; |
|||
97C146EF1CF9000F007C117D /* Products */ = { |
|||
isa = PBXGroup; |
|||
children = ( |
|||
97C146EE1CF9000F007C117D /* Runner.app */, |
|||
331C8081294A63A400263BE5 /* RunnerTests.xctest */, |
|||
); |
|||
name = Products; |
|||
sourceTree = "<group>"; |
|||
}; |
|||
97C146F01CF9000F007C117D /* Runner */ = { |
|||
isa = PBXGroup; |
|||
children = ( |
|||
97C146FA1CF9000F007C117D /* Main.storyboard */, |
|||
97C146FD1CF9000F007C117D /* Assets.xcassets */, |
|||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, |
|||
97C147021CF9000F007C117D /* Info.plist */, |
|||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, |
|||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, |
|||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */, |
|||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, |
|||
); |
|||
path = Runner; |
|||
sourceTree = "<group>"; |
|||
}; |
|||
/* End PBXGroup section */ |
|||
|
|||
/* Begin PBXNativeTarget section */ |
|||
331C8080294A63A400263BE5 /* RunnerTests */ = { |
|||
isa = PBXNativeTarget; |
|||
buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; |
|||
buildPhases = ( |
|||
331C807D294A63A400263BE5 /* Sources */, |
|||
331C807E294A63A400263BE5 /* Frameworks */, |
|||
331C807F294A63A400263BE5 /* Resources */, |
|||
); |
|||
buildRules = ( |
|||
); |
|||
dependencies = ( |
|||
331C8086294A63A400263BE5 /* PBXTargetDependency */, |
|||
); |
|||
name = RunnerTests; |
|||
productName = RunnerTests; |
|||
productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; |
|||
productType = "com.apple.product-type.bundle.unit-test"; |
|||
}; |
|||
97C146ED1CF9000F007C117D /* Runner */ = { |
|||
isa = PBXNativeTarget; |
|||
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; |
|||
buildPhases = ( |
|||
9740EEB61CF901F6004384FC /* Run Script */, |
|||
97C146EA1CF9000F007C117D /* Sources */, |
|||
97C146EB1CF9000F007C117D /* Frameworks */, |
|||
97C146EC1CF9000F007C117D /* Resources */, |
|||
9705A1C41CF9048500538489 /* Embed Frameworks */, |
|||
3B06AD1E1E4923F5004D2608 /* Thin Binary */, |
|||
); |
|||
buildRules = ( |
|||
); |
|||
dependencies = ( |
|||
); |
|||
name = Runner; |
|||
productName = Runner; |
|||
productReference = 97C146EE1CF9000F007C117D /* Runner.app */; |
|||
productType = "com.apple.product-type.application"; |
|||
}; |
|||
/* End PBXNativeTarget section */ |
|||
|
|||
/* Begin PBXProject section */ |
|||
97C146E61CF9000F007C117D /* Project object */ = { |
|||
isa = PBXProject; |
|||
attributes = { |
|||
LastUpgradeCheck = 1300; |
|||
ORGANIZATIONNAME = ""; |
|||
TargetAttributes = { |
|||
331C8080294A63A400263BE5 = { |
|||
CreatedOnToolsVersion = 14.0; |
|||
TestTargetID = 97C146ED1CF9000F007C117D; |
|||
}; |
|||
97C146ED1CF9000F007C117D = { |
|||
CreatedOnToolsVersion = 7.3.1; |
|||
LastSwiftMigration = 1100; |
|||
}; |
|||
}; |
|||
}; |
|||
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; |
|||
compatibilityVersion = "Xcode 9.3"; |
|||
developmentRegion = en; |
|||
hasScannedForEncodings = 0; |
|||
knownRegions = ( |
|||
en, |
|||
Base, |
|||
); |
|||
mainGroup = 97C146E51CF9000F007C117D; |
|||
productRefGroup = 97C146EF1CF9000F007C117D /* Products */; |
|||
projectDirPath = ""; |
|||
projectRoot = ""; |
|||
targets = ( |
|||
97C146ED1CF9000F007C117D /* Runner */, |
|||
331C8080294A63A400263BE5 /* RunnerTests */, |
|||
); |
|||
}; |
|||
/* End PBXProject section */ |
|||
|
|||
/* Begin PBXResourcesBuildPhase section */ |
|||
331C807F294A63A400263BE5 /* Resources */ = { |
|||
isa = PBXResourcesBuildPhase; |
|||
buildActionMask = 2147483647; |
|||
files = ( |
|||
); |
|||
runOnlyForDeploymentPostprocessing = 0; |
|||
}; |
|||
97C146EC1CF9000F007C117D /* Resources */ = { |
|||
isa = PBXResourcesBuildPhase; |
|||
buildActionMask = 2147483647; |
|||
files = ( |
|||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, |
|||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, |
|||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, |
|||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, |
|||
); |
|||
runOnlyForDeploymentPostprocessing = 0; |
|||
}; |
|||
/* End PBXResourcesBuildPhase section */ |
|||
|
|||
/* Begin PBXShellScriptBuildPhase section */ |
|||
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { |
|||
isa = PBXShellScriptBuildPhase; |
|||
alwaysOutOfDate = 1; |
|||
buildActionMask = 2147483647; |
|||
files = ( |
|||
); |
|||
inputPaths = ( |
|||
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", |
|||
); |
|||
name = "Thin Binary"; |
|||
outputPaths = ( |
|||
); |
|||
runOnlyForDeploymentPostprocessing = 0; |
|||
shellPath = /bin/sh; |
|||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; |
|||
}; |
|||
9740EEB61CF901F6004384FC /* Run Script */ = { |
|||
isa = PBXShellScriptBuildPhase; |
|||
alwaysOutOfDate = 1; |
|||
buildActionMask = 2147483647; |
|||
files = ( |
|||
); |
|||
inputPaths = ( |
|||
); |
|||
name = "Run Script"; |
|||
outputPaths = ( |
|||
); |
|||
runOnlyForDeploymentPostprocessing = 0; |
|||
shellPath = /bin/sh; |
|||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; |
|||
}; |
|||
/* End PBXShellScriptBuildPhase section */ |
|||
|
|||
/* Begin PBXSourcesBuildPhase section */ |
|||
331C807D294A63A400263BE5 /* Sources */ = { |
|||
isa = PBXSourcesBuildPhase; |
|||
buildActionMask = 2147483647; |
|||
files = ( |
|||
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, |
|||
); |
|||
runOnlyForDeploymentPostprocessing = 0; |
|||
}; |
|||
97C146EA1CF9000F007C117D /* Sources */ = { |
|||
isa = PBXSourcesBuildPhase; |
|||
buildActionMask = 2147483647; |
|||
files = ( |
|||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, |
|||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, |
|||
); |
|||
runOnlyForDeploymentPostprocessing = 0; |
|||
}; |
|||
/* End PBXSourcesBuildPhase section */ |
|||
|
|||
/* Begin PBXTargetDependency section */ |
|||
331C8086294A63A400263BE5 /* PBXTargetDependency */ = { |
|||
isa = PBXTargetDependency; |
|||
target = 97C146ED1CF9000F007C117D /* Runner */; |
|||
targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; |
|||
}; |
|||
/* End PBXTargetDependency section */ |
|||
|
|||
/* Begin PBXVariantGroup section */ |
|||
97C146FA1CF9000F007C117D /* Main.storyboard */ = { |
|||
isa = PBXVariantGroup; |
|||
children = ( |
|||
97C146FB1CF9000F007C117D /* Base */, |
|||
); |
|||
name = Main.storyboard; |
|||
sourceTree = "<group>"; |
|||
}; |
|||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { |
|||
isa = PBXVariantGroup; |
|||
children = ( |
|||
97C147001CF9000F007C117D /* Base */, |
|||
); |
|||
name = LaunchScreen.storyboard; |
|||
sourceTree = "<group>"; |
|||
}; |
|||
/* End PBXVariantGroup section */ |
|||
|
|||
/* Begin XCBuildConfiguration section */ |
|||
249021D3217E4FDB00AE95B9 /* Profile */ = { |
|||
isa = XCBuildConfiguration; |
|||
buildSettings = { |
|||
ALWAYS_SEARCH_USER_PATHS = NO; |
|||
CLANG_ANALYZER_NONNULL = YES; |
|||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; |
|||
CLANG_CXX_LIBRARY = "libc++"; |
|||
CLANG_ENABLE_MODULES = YES; |
|||
CLANG_ENABLE_OBJC_ARC = YES; |
|||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; |
|||
CLANG_WARN_BOOL_CONVERSION = YES; |
|||
CLANG_WARN_COMMA = YES; |
|||
CLANG_WARN_CONSTANT_CONVERSION = YES; |
|||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; |
|||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; |
|||
CLANG_WARN_EMPTY_BODY = YES; |
|||
CLANG_WARN_ENUM_CONVERSION = YES; |
|||
CLANG_WARN_INFINITE_RECURSION = YES; |
|||
CLANG_WARN_INT_CONVERSION = YES; |
|||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; |
|||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; |
|||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; |
|||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; |
|||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; |
|||
CLANG_WARN_STRICT_PROTOTYPES = YES; |
|||
CLANG_WARN_SUSPICIOUS_MOVE = YES; |
|||
CLANG_WARN_UNREACHABLE_CODE = YES; |
|||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; |
|||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
|||
COPY_PHASE_STRIP = NO; |
|||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; |
|||
ENABLE_NS_ASSERTIONS = NO; |
|||
ENABLE_STRICT_OBJC_MSGSEND = YES; |
|||
GCC_C_LANGUAGE_STANDARD = gnu99; |
|||
GCC_NO_COMMON_BLOCKS = YES; |
|||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES; |
|||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; |
|||
GCC_WARN_UNDECLARED_SELECTOR = YES; |
|||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; |
|||
GCC_WARN_UNUSED_FUNCTION = YES; |
|||
GCC_WARN_UNUSED_VARIABLE = YES; |
|||
IPHONEOS_DEPLOYMENT_TARGET = 11.0; |
|||
MTL_ENABLE_DEBUG_INFO = NO; |
|||
SDKROOT = iphoneos; |
|||
SUPPORTED_PLATFORMS = iphoneos; |
|||
TARGETED_DEVICE_FAMILY = "1,2"; |
|||
VALIDATE_PRODUCT = YES; |
|||
}; |
|||
name = Profile; |
|||
}; |
|||
249021D4217E4FDB00AE95B9 /* Profile */ = { |
|||
isa = XCBuildConfiguration; |
|||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; |
|||
buildSettings = { |
|||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
|||
CLANG_ENABLE_MODULES = YES; |
|||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; |
|||
ENABLE_BITCODE = NO; |
|||
INFOPLIST_FILE = Runner/Info.plist; |
|||
LD_RUNPATH_SEARCH_PATHS = ( |
|||
"$(inherited)", |
|||
"@executable_path/Frameworks", |
|||
); |
|||
PRODUCT_BUNDLE_IDENTIFIER = com.example.cpayflutter; |
|||
PRODUCT_NAME = "$(TARGET_NAME)"; |
|||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; |
|||
SWIFT_VERSION = 5.0; |
|||
VERSIONING_SYSTEM = "apple-generic"; |
|||
}; |
|||
name = Profile; |
|||
}; |
|||
331C8088294A63A400263BE5 /* Debug */ = { |
|||
isa = XCBuildConfiguration; |
|||
baseConfigurationReference = AE0B7B92F70575B8D7E0D07E /* Pods-RunnerTests.debug.xcconfig */; |
|||
buildSettings = { |
|||
BUNDLE_LOADER = "$(TEST_HOST)"; |
|||
CODE_SIGN_STYLE = Automatic; |
|||
CURRENT_PROJECT_VERSION = 1; |
|||
GENERATE_INFOPLIST_FILE = YES; |
|||
MARKETING_VERSION = 1.0; |
|||
PRODUCT_BUNDLE_IDENTIFIER = com.example.cpayflutter.RunnerTests; |
|||
PRODUCT_NAME = "$(TARGET_NAME)"; |
|||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; |
|||
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; |
|||
SWIFT_VERSION = 5.0; |
|||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; |
|||
}; |
|||
name = Debug; |
|||
}; |
|||
331C8089294A63A400263BE5 /* Release */ = { |
|||
isa = XCBuildConfiguration; |
|||
baseConfigurationReference = 89B67EB44CE7B6631473024E /* Pods-RunnerTests.release.xcconfig */; |
|||
buildSettings = { |
|||
BUNDLE_LOADER = "$(TEST_HOST)"; |
|||
CODE_SIGN_STYLE = Automatic; |
|||
CURRENT_PROJECT_VERSION = 1; |
|||
GENERATE_INFOPLIST_FILE = YES; |
|||
MARKETING_VERSION = 1.0; |
|||
PRODUCT_BUNDLE_IDENTIFIER = com.example.cpayflutter.RunnerTests; |
|||
PRODUCT_NAME = "$(TARGET_NAME)"; |
|||
SWIFT_VERSION = 5.0; |
|||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; |
|||
}; |
|||
name = Release; |
|||
}; |
|||
331C808A294A63A400263BE5 /* Profile */ = { |
|||
isa = XCBuildConfiguration; |
|||
baseConfigurationReference = 640959BDD8F10B91D80A66BE /* Pods-RunnerTests.profile.xcconfig */; |
|||
buildSettings = { |
|||
BUNDLE_LOADER = "$(TEST_HOST)"; |
|||
CODE_SIGN_STYLE = Automatic; |
|||
CURRENT_PROJECT_VERSION = 1; |
|||
GENERATE_INFOPLIST_FILE = YES; |
|||
MARKETING_VERSION = 1.0; |
|||
PRODUCT_BUNDLE_IDENTIFIER = com.example.cpayflutter.RunnerTests; |
|||
PRODUCT_NAME = "$(TARGET_NAME)"; |
|||
SWIFT_VERSION = 5.0; |
|||
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; |
|||
}; |
|||
name = Profile; |
|||
}; |
|||
97C147031CF9000F007C117D /* Debug */ = { |
|||
isa = XCBuildConfiguration; |
|||
buildSettings = { |
|||
ALWAYS_SEARCH_USER_PATHS = NO; |
|||
CLANG_ANALYZER_NONNULL = YES; |
|||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; |
|||
CLANG_CXX_LIBRARY = "libc++"; |
|||
CLANG_ENABLE_MODULES = YES; |
|||
CLANG_ENABLE_OBJC_ARC = YES; |
|||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; |
|||
CLANG_WARN_BOOL_CONVERSION = YES; |
|||
CLANG_WARN_COMMA = YES; |
|||
CLANG_WARN_CONSTANT_CONVERSION = YES; |
|||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; |
|||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; |
|||
CLANG_WARN_EMPTY_BODY = YES; |
|||
CLANG_WARN_ENUM_CONVERSION = YES; |
|||
CLANG_WARN_INFINITE_RECURSION = YES; |
|||
CLANG_WARN_INT_CONVERSION = YES; |
|||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; |
|||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; |
|||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; |
|||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; |
|||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; |
|||
CLANG_WARN_STRICT_PROTOTYPES = YES; |
|||
CLANG_WARN_SUSPICIOUS_MOVE = YES; |
|||
CLANG_WARN_UNREACHABLE_CODE = YES; |
|||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; |
|||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
|||
COPY_PHASE_STRIP = NO; |
|||
DEBUG_INFORMATION_FORMAT = dwarf; |
|||
ENABLE_STRICT_OBJC_MSGSEND = YES; |
|||
ENABLE_TESTABILITY = YES; |
|||
GCC_C_LANGUAGE_STANDARD = gnu99; |
|||
GCC_DYNAMIC_NO_PIC = NO; |
|||
GCC_NO_COMMON_BLOCKS = YES; |
|||
GCC_OPTIMIZATION_LEVEL = 0; |
|||
GCC_PREPROCESSOR_DEFINITIONS = ( |
|||
"DEBUG=1", |
|||
"$(inherited)", |
|||
); |
|||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES; |
|||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; |
|||
GCC_WARN_UNDECLARED_SELECTOR = YES; |
|||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; |
|||
GCC_WARN_UNUSED_FUNCTION = YES; |
|||
GCC_WARN_UNUSED_VARIABLE = YES; |
|||
IPHONEOS_DEPLOYMENT_TARGET = 11.0; |
|||
MTL_ENABLE_DEBUG_INFO = YES; |
|||
ONLY_ACTIVE_ARCH = YES; |
|||
SDKROOT = iphoneos; |
|||
TARGETED_DEVICE_FAMILY = "1,2"; |
|||
}; |
|||
name = Debug; |
|||
}; |
|||
97C147041CF9000F007C117D /* Release */ = { |
|||
isa = XCBuildConfiguration; |
|||
buildSettings = { |
|||
ALWAYS_SEARCH_USER_PATHS = NO; |
|||
CLANG_ANALYZER_NONNULL = YES; |
|||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; |
|||
CLANG_CXX_LIBRARY = "libc++"; |
|||
CLANG_ENABLE_MODULES = YES; |
|||
CLANG_ENABLE_OBJC_ARC = YES; |
|||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; |
|||
CLANG_WARN_BOOL_CONVERSION = YES; |
|||
CLANG_WARN_COMMA = YES; |
|||
CLANG_WARN_CONSTANT_CONVERSION = YES; |
|||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; |
|||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; |
|||
CLANG_WARN_EMPTY_BODY = YES; |
|||
CLANG_WARN_ENUM_CONVERSION = YES; |
|||
CLANG_WARN_INFINITE_RECURSION = YES; |
|||
CLANG_WARN_INT_CONVERSION = YES; |
|||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; |
|||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; |
|||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; |
|||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; |
|||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; |
|||
CLANG_WARN_STRICT_PROTOTYPES = YES; |
|||
CLANG_WARN_SUSPICIOUS_MOVE = YES; |
|||
CLANG_WARN_UNREACHABLE_CODE = YES; |
|||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; |
|||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; |
|||
COPY_PHASE_STRIP = NO; |
|||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; |
|||
ENABLE_NS_ASSERTIONS = NO; |
|||
ENABLE_STRICT_OBJC_MSGSEND = YES; |
|||
GCC_C_LANGUAGE_STANDARD = gnu99; |
|||
GCC_NO_COMMON_BLOCKS = YES; |
|||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES; |
|||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; |
|||
GCC_WARN_UNDECLARED_SELECTOR = YES; |
|||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; |
|||
GCC_WARN_UNUSED_FUNCTION = YES; |
|||
GCC_WARN_UNUSED_VARIABLE = YES; |
|||
IPHONEOS_DEPLOYMENT_TARGET = 11.0; |
|||
MTL_ENABLE_DEBUG_INFO = NO; |
|||
SDKROOT = iphoneos; |
|||
SUPPORTED_PLATFORMS = iphoneos; |
|||
SWIFT_COMPILATION_MODE = wholemodule; |
|||
SWIFT_OPTIMIZATION_LEVEL = "-O"; |
|||
TARGETED_DEVICE_FAMILY = "1,2"; |
|||
VALIDATE_PRODUCT = YES; |
|||
}; |
|||
name = Release; |
|||
}; |
|||
97C147061CF9000F007C117D /* Debug */ = { |
|||
isa = XCBuildConfiguration; |
|||
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; |
|||
buildSettings = { |
|||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
|||
CLANG_ENABLE_MODULES = YES; |
|||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; |
|||
ENABLE_BITCODE = NO; |
|||
INFOPLIST_FILE = Runner/Info.plist; |
|||
LD_RUNPATH_SEARCH_PATHS = ( |
|||
"$(inherited)", |
|||
"@executable_path/Frameworks", |
|||
); |
|||
PRODUCT_BUNDLE_IDENTIFIER = com.example.cpayflutter; |
|||
PRODUCT_NAME = "$(TARGET_NAME)"; |
|||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; |
|||
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; |
|||
SWIFT_VERSION = 5.0; |
|||
VERSIONING_SYSTEM = "apple-generic"; |
|||
}; |
|||
name = Debug; |
|||
}; |
|||
97C147071CF9000F007C117D /* Release */ = { |
|||
isa = XCBuildConfiguration; |
|||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; |
|||
buildSettings = { |
|||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
|||
CLANG_ENABLE_MODULES = YES; |
|||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; |
|||
ENABLE_BITCODE = NO; |
|||
INFOPLIST_FILE = Runner/Info.plist; |
|||
LD_RUNPATH_SEARCH_PATHS = ( |
|||
"$(inherited)", |
|||
"@executable_path/Frameworks", |
|||
); |
|||
PRODUCT_BUNDLE_IDENTIFIER = com.example.cpayflutter; |
|||
PRODUCT_NAME = "$(TARGET_NAME)"; |
|||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; |
|||
SWIFT_VERSION = 5.0; |
|||
VERSIONING_SYSTEM = "apple-generic"; |
|||
}; |
|||
name = Release; |
|||
}; |
|||
/* End XCBuildConfiguration section */ |
|||
|
|||
/* Begin XCConfigurationList section */ |
|||
331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { |
|||
isa = XCConfigurationList; |
|||
buildConfigurations = ( |
|||
331C8088294A63A400263BE5 /* Debug */, |
|||
331C8089294A63A400263BE5 /* Release */, |
|||
331C808A294A63A400263BE5 /* Profile */, |
|||
); |
|||
defaultConfigurationIsVisible = 0; |
|||
defaultConfigurationName = Release; |
|||
}; |
|||
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { |
|||
isa = XCConfigurationList; |
|||
buildConfigurations = ( |
|||
97C147031CF9000F007C117D /* Debug */, |
|||
97C147041CF9000F007C117D /* Release */, |
|||
249021D3217E4FDB00AE95B9 /* Profile */, |
|||
); |
|||
defaultConfigurationIsVisible = 0; |
|||
defaultConfigurationName = Release; |
|||
}; |
|||
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { |
|||
isa = XCConfigurationList; |
|||
buildConfigurations = ( |
|||
97C147061CF9000F007C117D /* Debug */, |
|||
97C147071CF9000F007C117D /* Release */, |
|||
249021D4217E4FDB00AE95B9 /* Profile */, |
|||
); |
|||
defaultConfigurationIsVisible = 0; |
|||
defaultConfigurationName = Release; |
|||
}; |
|||
/* End XCConfigurationList section */ |
|||
}; |
|||
rootObject = 97C146E61CF9000F007C117D /* Project object */; |
|||
} |
|||
@ -0,0 +1,7 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<Workspace |
|||
version = "1.0"> |
|||
<FileRef |
|||
location = "self:"> |
|||
</FileRef> |
|||
</Workspace> |
|||
@ -0,0 +1,8 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
|||
<plist version="1.0"> |
|||
<dict> |
|||
<key>IDEDidComputeMac32BitWarning</key> |
|||
<true/> |
|||
</dict> |
|||
</plist> |
|||
@ -0,0 +1,8 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
|||
<plist version="1.0"> |
|||
<dict> |
|||
<key>PreviewsEnabled</key> |
|||
<false/> |
|||
</dict> |
|||
</plist> |
|||
@ -0,0 +1,98 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<Scheme |
|||
LastUpgradeVersion = "1300" |
|||
version = "1.3"> |
|||
<BuildAction |
|||
parallelizeBuildables = "YES" |
|||
buildImplicitDependencies = "YES"> |
|||
<BuildActionEntries> |
|||
<BuildActionEntry |
|||
buildForTesting = "YES" |
|||
buildForRunning = "YES" |
|||
buildForProfiling = "YES" |
|||
buildForArchiving = "YES" |
|||
buildForAnalyzing = "YES"> |
|||
<BuildableReference |
|||
BuildableIdentifier = "primary" |
|||
BlueprintIdentifier = "97C146ED1CF9000F007C117D" |
|||
BuildableName = "Runner.app" |
|||
BlueprintName = "Runner" |
|||
ReferencedContainer = "container:Runner.xcodeproj"> |
|||
</BuildableReference> |
|||
</BuildActionEntry> |
|||
</BuildActionEntries> |
|||
</BuildAction> |
|||
<TestAction |
|||
buildConfiguration = "Debug" |
|||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" |
|||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" |
|||
shouldUseLaunchSchemeArgsEnv = "YES"> |
|||
<MacroExpansion> |
|||
<BuildableReference |
|||
BuildableIdentifier = "primary" |
|||
BlueprintIdentifier = "97C146ED1CF9000F007C117D" |
|||
BuildableName = "Runner.app" |
|||
BlueprintName = "Runner" |
|||
ReferencedContainer = "container:Runner.xcodeproj"> |
|||
</BuildableReference> |
|||
</MacroExpansion> |
|||
<Testables> |
|||
<TestableReference |
|||
skipped = "NO" |
|||
parallelizable = "YES"> |
|||
<BuildableReference |
|||
BuildableIdentifier = "primary" |
|||
BlueprintIdentifier = "331C8080294A63A400263BE5" |
|||
BuildableName = "RunnerTests.xctest" |
|||
BlueprintName = "RunnerTests" |
|||
ReferencedContainer = "container:Runner.xcodeproj"> |
|||
</BuildableReference> |
|||
</TestableReference> |
|||
</Testables> |
|||
</TestAction> |
|||
<LaunchAction |
|||
buildConfiguration = "Debug" |
|||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" |
|||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" |
|||
launchStyle = "0" |
|||
useCustomWorkingDirectory = "NO" |
|||
ignoresPersistentStateOnLaunch = "NO" |
|||
debugDocumentVersioning = "YES" |
|||
debugServiceExtension = "internal" |
|||
allowLocationSimulation = "YES"> |
|||
<BuildableProductRunnable |
|||
runnableDebuggingMode = "0"> |
|||
<BuildableReference |
|||
BuildableIdentifier = "primary" |
|||
BlueprintIdentifier = "97C146ED1CF9000F007C117D" |
|||
BuildableName = "Runner.app" |
|||
BlueprintName = "Runner" |
|||
ReferencedContainer = "container:Runner.xcodeproj"> |
|||
</BuildableReference> |
|||
</BuildableProductRunnable> |
|||
</LaunchAction> |
|||
<ProfileAction |
|||
buildConfiguration = "Profile" |
|||
shouldUseLaunchSchemeArgsEnv = "YES" |
|||
savedToolIdentifier = "" |
|||
useCustomWorkingDirectory = "NO" |
|||
debugDocumentVersioning = "YES"> |
|||
<BuildableProductRunnable |
|||
runnableDebuggingMode = "0"> |
|||
<BuildableReference |
|||
BuildableIdentifier = "primary" |
|||
BlueprintIdentifier = "97C146ED1CF9000F007C117D" |
|||
BuildableName = "Runner.app" |
|||
BlueprintName = "Runner" |
|||
ReferencedContainer = "container:Runner.xcodeproj"> |
|||
</BuildableReference> |
|||
</BuildableProductRunnable> |
|||
</ProfileAction> |
|||
<AnalyzeAction |
|||
buildConfiguration = "Debug"> |
|||
</AnalyzeAction> |
|||
<ArchiveAction |
|||
buildConfiguration = "Release" |
|||
revealArchiveInOrganizer = "YES"> |
|||
</ArchiveAction> |
|||
</Scheme> |
|||
@ -0,0 +1,7 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<Workspace |
|||
version = "1.0"> |
|||
<FileRef |
|||
location = "group:Runner.xcodeproj"> |
|||
</FileRef> |
|||
</Workspace> |
|||
@ -0,0 +1,8 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
|||
<plist version="1.0"> |
|||
<dict> |
|||
<key>IDEDidComputeMac32BitWarning</key> |
|||
<true/> |
|||
</dict> |
|||
</plist> |
|||
@ -0,0 +1,8 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
|||
<plist version="1.0"> |
|||
<dict> |
|||
<key>PreviewsEnabled</key> |
|||
<false/> |
|||
</dict> |
|||
</plist> |
|||
@ -0,0 +1,13 @@ |
|||
import UIKit |
|||
import Flutter |
|||
|
|||
@UIApplicationMain |
|||
@objc class AppDelegate: FlutterAppDelegate { |
|||
override func application( |
|||
_ application: UIApplication, |
|||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? |
|||
) -> Bool { |
|||
GeneratedPluginRegistrant.register(with: self) |
|||
return super.application(application, didFinishLaunchingWithOptions: launchOptions) |
|||
} |
|||
} |
|||
@ -0,0 +1,122 @@ |
|||
{ |
|||
"images" : [ |
|||
{ |
|||
"size" : "20x20", |
|||
"idiom" : "iphone", |
|||
"filename" : "Icon-App-20x20@2x.png", |
|||
"scale" : "2x" |
|||
}, |
|||
{ |
|||
"size" : "20x20", |
|||
"idiom" : "iphone", |
|||
"filename" : "Icon-App-20x20@3x.png", |
|||
"scale" : "3x" |
|||
}, |
|||
{ |
|||
"size" : "29x29", |
|||
"idiom" : "iphone", |
|||
"filename" : "Icon-App-29x29@1x.png", |
|||
"scale" : "1x" |
|||
}, |
|||
{ |
|||
"size" : "29x29", |
|||
"idiom" : "iphone", |
|||
"filename" : "Icon-App-29x29@2x.png", |
|||
"scale" : "2x" |
|||
}, |
|||
{ |
|||
"size" : "29x29", |
|||
"idiom" : "iphone", |
|||
"filename" : "Icon-App-29x29@3x.png", |
|||
"scale" : "3x" |
|||
}, |
|||
{ |
|||
"size" : "40x40", |
|||
"idiom" : "iphone", |
|||
"filename" : "Icon-App-40x40@2x.png", |
|||
"scale" : "2x" |
|||
}, |
|||
{ |
|||
"size" : "40x40", |
|||
"idiom" : "iphone", |
|||
"filename" : "Icon-App-40x40@3x.png", |
|||
"scale" : "3x" |
|||
}, |
|||
{ |
|||
"size" : "60x60", |
|||
"idiom" : "iphone", |
|||
"filename" : "Icon-App-60x60@2x.png", |
|||
"scale" : "2x" |
|||
}, |
|||
{ |
|||
"size" : "60x60", |
|||
"idiom" : "iphone", |
|||
"filename" : "Icon-App-60x60@3x.png", |
|||
"scale" : "3x" |
|||
}, |
|||
{ |
|||
"size" : "20x20", |
|||
"idiom" : "ipad", |
|||
"filename" : "Icon-App-20x20@1x.png", |
|||
"scale" : "1x" |
|||
}, |
|||
{ |
|||
"size" : "20x20", |
|||
"idiom" : "ipad", |
|||
"filename" : "Icon-App-20x20@2x.png", |
|||
"scale" : "2x" |
|||
}, |
|||
{ |
|||
"size" : "29x29", |
|||
"idiom" : "ipad", |
|||
"filename" : "Icon-App-29x29@1x.png", |
|||
"scale" : "1x" |
|||
}, |
|||
{ |
|||
"size" : "29x29", |
|||
"idiom" : "ipad", |
|||
"filename" : "Icon-App-29x29@2x.png", |
|||
"scale" : "2x" |
|||
}, |
|||
{ |
|||
"size" : "40x40", |
|||
"idiom" : "ipad", |
|||
"filename" : "Icon-App-40x40@1x.png", |
|||
"scale" : "1x" |
|||
}, |
|||
{ |
|||
"size" : "40x40", |
|||
"idiom" : "ipad", |
|||
"filename" : "Icon-App-40x40@2x.png", |
|||
"scale" : "2x" |
|||
}, |
|||
{ |
|||
"size" : "76x76", |
|||
"idiom" : "ipad", |
|||
"filename" : "Icon-App-76x76@1x.png", |
|||
"scale" : "1x" |
|||
}, |
|||
{ |
|||
"size" : "76x76", |
|||
"idiom" : "ipad", |
|||
"filename" : "Icon-App-76x76@2x.png", |
|||
"scale" : "2x" |
|||
}, |
|||
{ |
|||
"size" : "83.5x83.5", |
|||
"idiom" : "ipad", |
|||
"filename" : "Icon-App-83.5x83.5@2x.png", |
|||
"scale" : "2x" |
|||
}, |
|||
{ |
|||
"size" : "1024x1024", |
|||
"idiom" : "ios-marketing", |
|||
"filename" : "Icon-App-1024x1024@1x.png", |
|||
"scale" : "1x" |
|||
} |
|||
], |
|||
"info" : { |
|||
"version" : 1, |
|||
"author" : "xcode" |
|||
} |
|||
} |
|||
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 295 B |
|
After Width: | Height: | Size: 406 B |
|
After Width: | Height: | Size: 450 B |
|
After Width: | Height: | Size: 282 B |
|
After Width: | Height: | Size: 462 B |
|
After Width: | Height: | Size: 704 B |
|
After Width: | Height: | Size: 406 B |
|
After Width: | Height: | Size: 586 B |
|
After Width: | Height: | Size: 862 B |
|
After Width: | Height: | Size: 862 B |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 762 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
@ -0,0 +1,23 @@ |
|||
{ |
|||
"images" : [ |
|||
{ |
|||
"idiom" : "universal", |
|||
"filename" : "LaunchImage.png", |
|||
"scale" : "1x" |
|||
}, |
|||
{ |
|||
"idiom" : "universal", |
|||
"filename" : "LaunchImage@2x.png", |
|||
"scale" : "2x" |
|||
}, |
|||
{ |
|||
"idiom" : "universal", |
|||
"filename" : "LaunchImage@3x.png", |
|||
"scale" : "3x" |
|||
} |
|||
], |
|||
"info" : { |
|||
"version" : 1, |
|||
"author" : "xcode" |
|||
} |
|||
} |
|||
|
After Width: | Height: | Size: 68 B |
|
After Width: | Height: | Size: 68 B |
|
After Width: | Height: | Size: 68 B |
@ -0,0 +1,5 @@ |
|||
# Launch Screen Assets |
|||
|
|||
You can customize the launch screen with your own desired assets by replacing the image files in this directory. |
|||
|
|||
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. |
|||
@ -0,0 +1,37 @@ |
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> |
|||
<dependencies> |
|||
<deployment identifier="iOS"/> |
|||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/> |
|||
</dependencies> |
|||
<scenes> |
|||
<!--View Controller--> |
|||
<scene sceneID="EHf-IW-A2E"> |
|||
<objects> |
|||
<viewController id="01J-lp-oVM" sceneMemberID="viewController"> |
|||
<layoutGuides> |
|||
<viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/> |
|||
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/> |
|||
</layoutGuides> |
|||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> |
|||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
|||
<subviews> |
|||
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4"> |
|||
</imageView> |
|||
</subviews> |
|||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
|||
<constraints> |
|||
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/> |
|||
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/> |
|||
</constraints> |
|||
</view> |
|||
</viewController> |
|||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> |
|||
</objects> |
|||
<point key="canvasLocation" x="53" y="375"/> |
|||
</scene> |
|||
</scenes> |
|||
<resources> |
|||
<image name="LaunchImage" width="168" height="185"/> |
|||
</resources> |
|||
</document> |
|||
@ -0,0 +1,26 @@ |
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r"> |
|||
<dependencies> |
|||
<deployment identifier="iOS"/> |
|||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/> |
|||
</dependencies> |
|||
<scenes> |
|||
<!--Flutter View Controller--> |
|||
<scene sceneID="tne-QT-ifu"> |
|||
<objects> |
|||
<viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController"> |
|||
<layoutGuides> |
|||
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/> |
|||
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/> |
|||
</layoutGuides> |
|||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> |
|||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/> |
|||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
|||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> |
|||
</view> |
|||
</viewController> |
|||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> |
|||
</objects> |
|||
</scene> |
|||
</scenes> |
|||
</document> |
|||
@ -0,0 +1,51 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
|||
<plist version="1.0"> |
|||
<dict> |
|||
<key>CFBundleDevelopmentRegion</key> |
|||
<string>$(DEVELOPMENT_LANGUAGE)</string> |
|||
<key>CFBundleDisplayName</key> |
|||
<string>Cpayflutter</string> |
|||
<key>CFBundleExecutable</key> |
|||
<string>$(EXECUTABLE_NAME)</string> |
|||
<key>CFBundleIdentifier</key> |
|||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> |
|||
<key>CFBundleInfoDictionaryVersion</key> |
|||
<string>6.0</string> |
|||
<key>CFBundleName</key> |
|||
<string>cpayflutter</string> |
|||
<key>CFBundlePackageType</key> |
|||
<string>APPL</string> |
|||
<key>CFBundleShortVersionString</key> |
|||
<string>$(FLUTTER_BUILD_NAME)</string> |
|||
<key>CFBundleSignature</key> |
|||
<string>????</string> |
|||
<key>CFBundleVersion</key> |
|||
<string>$(FLUTTER_BUILD_NUMBER)</string> |
|||
<key>LSRequiresIPhoneOS</key> |
|||
<true/> |
|||
<key>UILaunchStoryboardName</key> |
|||
<string>LaunchScreen</string> |
|||
<key>UIMainStoryboardFile</key> |
|||
<string>Main</string> |
|||
<key>UISupportedInterfaceOrientations</key> |
|||
<array> |
|||
<string>UIInterfaceOrientationPortrait</string> |
|||
<string>UIInterfaceOrientationLandscapeLeft</string> |
|||
<string>UIInterfaceOrientationLandscapeRight</string> |
|||
</array> |
|||
<key>UISupportedInterfaceOrientations~ipad</key> |
|||
<array> |
|||
<string>UIInterfaceOrientationPortrait</string> |
|||
<string>UIInterfaceOrientationPortraitUpsideDown</string> |
|||
<string>UIInterfaceOrientationLandscapeLeft</string> |
|||
<string>UIInterfaceOrientationLandscapeRight</string> |
|||
</array> |
|||
<key>UIViewControllerBasedStatusBarAppearance</key> |
|||
<false/> |
|||
<key>CADisableMinimumFrameDurationOnPhone</key> |
|||
<true/> |
|||
<key>UIApplicationSupportsIndirectInputEvents</key> |
|||
<true/> |
|||
</dict> |
|||
</plist> |
|||
@ -0,0 +1 @@ |
|||
#import "GeneratedPluginRegistrant.h" |
|||
@ -0,0 +1,12 @@ |
|||
import Flutter |
|||
import UIKit |
|||
import XCTest |
|||
|
|||
class RunnerTests: XCTestCase { |
|||
|
|||
func testExample() { |
|||
// If you add code to the Runner application, consider adding tests here. |
|||
// See https://developer.apple.com/documentation/xctest for more information about using XCTest. |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,180 @@ |
|||
import 'dart:async'; |
|||
import 'dart:convert'; |
|||
|
|||
import 'package:http/http.dart'; |
|||
|
|||
//test |
|||
|
|||
class Api { |
|||
static getcategories() async { |
|||
try { |
|||
final request = await post(Uri.parse("https://api.c-pay.me"), |
|||
body: jsonEncode({ |
|||
"app": "cpay", |
|||
"Autorization": "...", |
|||
"action": "get_vente_categorie" |
|||
}), |
|||
headers: <String, String>{ |
|||
'Content-Type': 'application/json; charset=UTF-8', |
|||
}).timeout(const Duration(seconds: 20)); |
|||
if (request.statusCode == 200) { |
|||
var data = jsonDecode(request.body); |
|||
return data; |
|||
} else { |
|||
return {}; |
|||
} |
|||
} catch (e) { |
|||
return e; |
|||
} |
|||
} |
|||
|
|||
static getarticlebycategories(String cat, int page, String textsearch) async { |
|||
final request = await post(Uri.parse("https://api.c-pay.me"), |
|||
body: jsonEncode({ |
|||
"app": "cpay", |
|||
"Autorization": "...", |
|||
"action": "get_vente", |
|||
"page": page, |
|||
"categorie": cat, |
|||
"search": textsearch |
|||
}), |
|||
headers: <String, String>{ |
|||
'Content-Type': 'application/json; charset=UTF-8', |
|||
}).timeout(const Duration(seconds: 15)); |
|||
if (request.statusCode == 200) { |
|||
var data = jsonDecode(request.body); |
|||
return data; |
|||
} else { |
|||
return 0; |
|||
} |
|||
} |
|||
|
|||
static getarticle(int page) async { |
|||
//List listarticle = []; |
|||
try { |
|||
final request = await post(Uri.parse("https://api.c-pay.me"), |
|||
body: jsonEncode({ |
|||
"app": "cpay", |
|||
"Autorization": "...", |
|||
"action": "get_vente", |
|||
"page": page |
|||
}), |
|||
headers: <String, String>{ |
|||
'Content-Type': 'application/json; charset=UTF-8', |
|||
}).timeout(const Duration(seconds: 20)); |
|||
if (request.statusCode == 200) { |
|||
var data = jsonDecode(request.body); |
|||
//listarticle = data["mdata"]; |
|||
return data; |
|||
} else { |
|||
return 0; |
|||
} |
|||
} catch (e) { |
|||
return e; |
|||
} |
|||
} |
|||
|
|||
static faireDepotMvola(String iban, String montant, String phone) async { |
|||
final request = await post(Uri.parse('https://api.c-pay.me'), |
|||
body: jsonEncode({ |
|||
"app": "cpay", |
|||
"iban": iban, |
|||
"montant": montant, |
|||
"telephone": phone, |
|||
"Autorization": "...", |
|||
"action": "depot_mvola" |
|||
}), |
|||
headers: <String, String>{ |
|||
'Content-Type': 'application/json; charset=UTF-8', |
|||
}).timeout(const Duration(seconds: 20)); |
|||
if (request.statusCode == 200) { |
|||
var data = jsonDecode(request.body); |
|||
return data; |
|||
} |
|||
} |
|||
|
|||
static listenStatus(String servercorrelationid) async { |
|||
final request = |
|||
await get(Uri.parse("https://api.c-pay.me/mvola/$servercorrelationid")); |
|||
if (request.statusCode == 200) { |
|||
var data = jsonDecode(request.body); |
|||
return data; |
|||
} else { |
|||
return 0; |
|||
} |
|||
} |
|||
|
|||
static getDepotlist(String iban, int page) async { |
|||
final request = await post(Uri.parse('https://api.c-pay.me/depot'), |
|||
body: jsonEncode({ |
|||
"app": "cpay", |
|||
"session": iban, |
|||
"Autorization": "...", |
|||
"action": "get_transactions", |
|||
"page": page |
|||
}), |
|||
headers: <String, String>{ |
|||
'Content-Type': 'application/json; charset=UTF-8', |
|||
}); |
|||
if (request.statusCode == 200) { |
|||
var data = jsonDecode(request.body); |
|||
return data; |
|||
} else { |
|||
return 0; |
|||
} |
|||
} |
|||
|
|||
static getReference(String iban, String montant) async { |
|||
try { |
|||
var request = await post(Uri.parse('https://api.c-pay.me/depot'), |
|||
body: jsonEncode({ |
|||
"app": "cpay", |
|||
"iban": iban, |
|||
"Autorization": "...", |
|||
"action": "get_reference", |
|||
"montant": montant |
|||
}), |
|||
headers: <String, String>{ |
|||
'Content-Type': 'application/json; charset=UTF-8', |
|||
}); |
|||
if (request.statusCode == 200) { |
|||
// Map<String, dynamic> data = |
|||
// Map<String, dynamic>.from(jsonDecode(request.body)); |
|||
var data = jsonDecode(request.body); |
|||
return data; |
|||
} else { |
|||
return null; |
|||
} |
|||
} catch (erreur) { |
|||
return 0; |
|||
} |
|||
} |
|||
|
|||
static sendrequestdepositBnktransfer( |
|||
String iban, String montant, String ref) async { |
|||
try { |
|||
var request = await post(Uri.parse('https://api.c-pay.me/depot'), |
|||
body: jsonEncode({ |
|||
"app": "cpay", |
|||
"iban": iban, |
|||
"Autorization": "...", |
|||
"action": "depot_bank", |
|||
"montant": montant, |
|||
"reference": ref |
|||
}), |
|||
headers: <String, String>{ |
|||
'Content-Type': 'application/json; charset=UTF-8', |
|||
}); |
|||
if (request.statusCode == 200) { |
|||
// Map<String, dynamic> data = |
|||
// Map<String, dynamic>.from(jsonDecode(request.body)); |
|||
var data = jsonDecode(request.body); |
|||
return data; |
|||
} else { |
|||
return 0; |
|||
} |
|||
} catch (erreur) { |
|||
return erreur; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,54 @@ |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
class TextFieldPreuse extends StatelessWidget { |
|||
final Icon? prefixIco; |
|||
final TextInputType typeWord; |
|||
final bool obscur; |
|||
final IconButton? sufixICO; |
|||
final String? label; |
|||
final String? hint; |
|||
final TextEditingController control; |
|||
final Color colorinside; |
|||
const TextFieldPreuse({ |
|||
super.key, |
|||
required this.obscur, |
|||
this.prefixIco, |
|||
this.colorinside = const Color(0xFF6334A9), |
|||
required this.typeWord, |
|||
this.hint, |
|||
this.sufixICO, |
|||
this.label, |
|||
required this.control, |
|||
}); |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return SizedBox( |
|||
//color: Colors.red, |
|||
width: 300.w, |
|||
child: TextField( |
|||
controller: control, |
|||
obscureText: obscur, |
|||
cursorColor: Colors.white, |
|||
style: TextStyle(fontSize: 12.sp, color: Colors.white), |
|||
keyboardType: typeWord, |
|||
decoration: InputDecoration( |
|||
//contentPadding: EdgeInsets.all(18.sp), |
|||
hintText: hint, |
|||
labelStyle: TextStyle(fontSize: 12.sp, color: Colors.white), |
|||
fillColor: colorinside, |
|||
focusedBorder: OutlineInputBorder( |
|||
borderSide: BorderSide(color: Colors.white, width: 5.w), |
|||
borderRadius: const BorderRadius.all(Radius.circular(60))), |
|||
enabledBorder: OutlineInputBorder( |
|||
borderSide: BorderSide(color: Colors.white, width: 5.w), |
|||
borderRadius: const BorderRadius.all(Radius.circular(60))), |
|||
filled: true, |
|||
labelText: label, |
|||
prefixIcon: prefixIco, |
|||
suffixIcon: sufixICO), |
|||
), |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,74 @@ |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
// ignore: must_be_immutable |
|||
class BarreRech extends StatefulWidget { |
|||
BarreRech( |
|||
{super.key, |
|||
required this.context, |
|||
required this.affichCategries, |
|||
required this.onchangedtext}); |
|||
BuildContext context; |
|||
final Function affichCategries; |
|||
final Function onchangedtext; |
|||
static String text = ''; |
|||
@override |
|||
State<BarreRech> createState() => _BarreRechState(); |
|||
} |
|||
|
|||
class _BarreRechState extends State<BarreRech> { |
|||
TextEditingController textcontroller = TextEditingController(); |
|||
@override |
|||
Widget build(context) { |
|||
return Container( |
|||
height: 50.spMax, |
|||
width: MediaQuery.of(context).size.width * 0.9, |
|||
decoration: BoxDecoration( |
|||
color: const Color(0xFF6334A9), |
|||
borderRadius: BorderRadius.circular(15)), |
|||
child: Padding( |
|||
padding: const EdgeInsets.all(8.0), |
|||
child: Row( |
|||
children: [ |
|||
const Expanded( |
|||
child: Icon( |
|||
Icons.search, |
|||
color: Colors.white, |
|||
), |
|||
), |
|||
SizedBox( |
|||
width: 220.spMax, |
|||
//color: Colors.green, |
|||
child: TextField( |
|||
controller: textcontroller, |
|||
onEditingComplete: () { |
|||
BarreRech.text = textcontroller.text; |
|||
widget.onchangedtext(); |
|||
}, |
|||
style: const TextStyle( |
|||
color: Colors.white, |
|||
), |
|||
cursorColor: Colors.white, |
|||
maxLines: 1, |
|||
decoration: const InputDecoration.collapsed( |
|||
hintStyle: TextStyle(color: Colors.white), |
|||
hintText: "Rechercher...", |
|||
), |
|||
), |
|||
), |
|||
Expanded( |
|||
child: IconButton( |
|||
onPressed: () { |
|||
widget.affichCategries(); |
|||
}, |
|||
icon: const Icon( |
|||
Icons.tune_rounded, |
|||
color: Colors.white, |
|||
)), |
|||
) |
|||
], |
|||
), |
|||
), |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,231 @@ |
|||
//import 'package:cpay/items/itemsTab/Showdialog/fairedepot.dart'; |
|||
//import 'package:cpay/items/itemsTab/Showdialog/faireretrait.dart'; |
|||
import 'package:cpay/pages/depotpage.dart'; |
|||
import 'package:cpay/pages/retraitpage.dart'; |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
import 'package:cpay/models/user.dart'; |
|||
|
|||
class BulleRetraitVers extends StatelessWidget { |
|||
final Function func; |
|||
const BulleRetraitVers({ |
|||
super.key, |
|||
required this.func, |
|||
}); |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return Scaffold( |
|||
backgroundColor: Colors.transparent, |
|||
body: Column( |
|||
mainAxisAlignment: MainAxisAlignment.center, |
|||
children: [ |
|||
SizedBox( |
|||
height: 70.sp, |
|||
width: 70.sp, |
|||
child: Column( |
|||
children: [ |
|||
Container( |
|||
decoration: BoxDecoration( |
|||
boxShadow: [ |
|||
BoxShadow( |
|||
color: Colors.black.withOpacity(0.3), |
|||
spreadRadius: 7, |
|||
blurRadius: 9, |
|||
offset: const Offset( |
|||
2, 5), // Décalage vertical de l'ombre |
|||
), |
|||
], |
|||
color: Colors.white, |
|||
borderRadius: BorderRadius.circular(60.sp)), |
|||
child: SizedBox( |
|||
height: 45.sp, |
|||
width: 45.sp, |
|||
child: IconButton( |
|||
onPressed: () { |
|||
func(); |
|||
Navigator.push( |
|||
context, |
|||
MaterialPageRoute( |
|||
builder: (context) => const PageDepot())); |
|||
}, |
|||
icon: Image.asset('lib/photos/depot.png')), |
|||
), |
|||
), |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'DEPOT', |
|||
style: TextStyle( |
|||
fontSize: 8.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
], |
|||
), |
|||
), |
|||
User.sessionUser != null |
|||
? SizedBox( |
|||
height: 70.sp, |
|||
width: 70.sp, |
|||
child: Column( |
|||
children: [ |
|||
Container( |
|||
decoration: BoxDecoration( |
|||
boxShadow: [ |
|||
BoxShadow( |
|||
color: Colors.black.withOpacity(0.3), |
|||
spreadRadius: 7, |
|||
blurRadius: 9, |
|||
offset: const Offset( |
|||
2, 5), // Décalage vertical de l'ombre |
|||
), |
|||
], |
|||
color: Colors.white, |
|||
borderRadius: BorderRadius.circular(60.sp)), |
|||
child: SizedBox( |
|||
height: 45.sp, |
|||
width: 45.sp, |
|||
child: IconButton( |
|||
onPressed: () { |
|||
func(); |
|||
Navigator.push( |
|||
context, |
|||
MaterialPageRoute( |
|||
builder: (context) => |
|||
const RetraitPage())); |
|||
}, |
|||
icon: Image.asset('lib/photos/retrait.png')), |
|||
), |
|||
), |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'RETRAIT', |
|||
style: TextStyle( |
|||
fontSize: 8.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
], |
|||
), |
|||
) |
|||
: const SizedBox(), |
|||
SizedBox( |
|||
height: 70.sp, |
|||
width: 70.sp, |
|||
child: Column( |
|||
children: [ |
|||
Container( |
|||
decoration: BoxDecoration( |
|||
boxShadow: [ |
|||
BoxShadow( |
|||
color: Colors.black.withOpacity(0.3), |
|||
spreadRadius: 7, |
|||
blurRadius: 9, |
|||
offset: const Offset( |
|||
2, 5), // Décalage vertical de l'ombre |
|||
), |
|||
], |
|||
color: Colors.white, |
|||
borderRadius: BorderRadius.circular(60.sp)), |
|||
child: SizedBox( |
|||
height: 45.sp, |
|||
width: 45.sp, |
|||
child: IconButton( |
|||
onPressed: () { |
|||
func(); |
|||
Navigator.push( |
|||
context, |
|||
MaterialPageRoute( |
|||
builder: (context) => const PageDepot())); |
|||
}, |
|||
icon: Image.asset('lib/photos/transfert.png')), |
|||
), |
|||
), |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'TRANSFERT', |
|||
style: TextStyle( |
|||
fontSize: 8.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
], |
|||
), |
|||
), |
|||
// ElevatedButton( |
|||
// style: ButtonStyle( |
|||
// shape: MaterialStateProperty.all( |
|||
// RoundedRectangleBorder( |
|||
// borderRadius: BorderRadius.circular(10.0), |
|||
// ), |
|||
// ), |
|||
// backgroundColor: MaterialStateProperty.all( |
|||
// const Color(0xFF6334A9), |
|||
// )), |
|||
// onPressed: () => dialogadepot(), |
|||
// child: const Row( |
|||
// mainAxisAlignment: MainAxisAlignment.center, |
|||
// children: [ |
|||
// Icon( |
|||
// Icons.add, |
|||
// color: Colors.white, |
|||
// ), |
|||
// Expanded( |
|||
// child: Text( |
|||
// textAlign: TextAlign.center, |
|||
// 'Depot', |
|||
// style: TextStyle( |
|||
// fontSize: 20, |
|||
// fontWeight: FontWeight.bold, |
|||
// color: Colors.white, |
|||
// fontFamily: 'PlusJakartaSans', |
|||
// ), |
|||
// ), |
|||
// ), |
|||
// ], |
|||
// ), |
|||
// ), |
|||
// ElevatedButton( |
|||
// style: ButtonStyle( |
|||
// shape: MaterialStateProperty.all( |
|||
// RoundedRectangleBorder( |
|||
// borderRadius: BorderRadius.circular(10.0), |
|||
// ), |
|||
// ), |
|||
// backgroundColor: MaterialStateProperty.all( |
|||
// const Color(0xFF6334A9), |
|||
// )), |
|||
// onPressed: () => dialogretrait(), |
|||
// child: const Row( |
|||
// mainAxisAlignment: MainAxisAlignment.center, |
|||
// children: [ |
|||
// Icon( |
|||
// Icons.money_off, |
|||
// color: Colors.white, |
|||
// ), |
|||
// Expanded( |
|||
// child: Text( |
|||
// textAlign: TextAlign.center, |
|||
// 'Retrait', |
|||
// style: TextStyle( |
|||
// fontSize: 20, |
|||
// fontWeight: FontWeight.bold, |
|||
// color: Colors.white, |
|||
// fontFamily: 'PlusJakartaSans', |
|||
// ), |
|||
// ), |
|||
// ), |
|||
// ], |
|||
// ), |
|||
// ), |
|||
], |
|||
), |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,417 @@ |
|||
import 'dart:async'; |
|||
import 'dart:math'; |
|||
|
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
//import '../models/articles.dart'; |
|||
|
|||
class CardArticle extends StatefulWidget { |
|||
const CardArticle( |
|||
{super.key, |
|||
required this.couleurCpay, |
|||
required this.id, |
|||
required this.id_categorie, |
|||
required this.categorie, |
|||
required this.photos, |
|||
required this.designation, |
|||
required this.prix_ticket, |
|||
required this.reference, |
|||
required this.pourcentage, |
|||
required this.date_tirage}); |
|||
final String id; |
|||
final String id_categorie; |
|||
final String categorie; |
|||
final String photos; |
|||
final String designation; |
|||
final String prix_ticket; |
|||
final String reference; |
|||
final int pourcentage; |
|||
final String date_tirage; |
|||
//final Article article; |
|||
final Color couleurCpay; |
|||
|
|||
@override |
|||
State<CardArticle> createState() => _CardArticleState(); |
|||
} |
|||
|
|||
class _CardArticleState extends State<CardArticle> { |
|||
double init = 0.0; |
|||
double percent = 0; |
|||
late Timer time; |
|||
progressAnimation(int nb) { |
|||
if (mounted) { |
|||
setState(() { |
|||
if (init < nb / 100) { |
|||
init = init + 0.01; |
|||
percent = init * 100; |
|||
} else { |
|||
time.cancel(); |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
|
|||
animProgress() { |
|||
time = Timer.periodic(const Duration(milliseconds: 1), (timer) { |
|||
progressAnimation(widget.pourcentage); |
|||
}); |
|||
} |
|||
|
|||
@override |
|||
void initState() { |
|||
super.initState(); |
|||
animProgress(); |
|||
} |
|||
|
|||
@override |
|||
void dispose() { |
|||
super.dispose(); |
|||
} |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
double screenwidth = MediaQuery.of(context).size.width; |
|||
|
|||
return Scaffold( |
|||
body: Center( |
|||
child: SizedBox( |
|||
width: screenwidth, |
|||
child: Card( |
|||
elevation: 2, |
|||
color: widget.couleurCpay.withOpacity(0.8), |
|||
child: Stack( |
|||
children: [ |
|||
Padding( |
|||
padding: const EdgeInsets.fromLTRB( |
|||
0, 7, 0, 0), //EdgeInsets.all(2.0.sp), |
|||
child: Column( |
|||
children: [ |
|||
Expanded( |
|||
child: Row( |
|||
children: <Widget>[ |
|||
// const SizedBox( |
|||
// height: 10, |
|||
// ), |
|||
Container( |
|||
//child: Image.network(widget.photos), |
|||
margin: const EdgeInsets.fromLTRB(7, 0, 0, 0), |
|||
decoration: BoxDecoration( |
|||
color: Colors.white, |
|||
borderRadius: BorderRadius.circular(10), |
|||
image: DecorationImage( |
|||
fit: BoxFit.contain, |
|||
image: NetworkImage(widget.photos)), |
|||
//color: Colors.orange, |
|||
), |
|||
height: 120.h, |
|||
width: 140.w, |
|||
child: Align( |
|||
alignment: Alignment.topRight, |
|||
child: ClipPath( |
|||
clipper: TrapeziumClipper(), |
|||
child: Container( |
|||
width: 80, |
|||
height: 80, |
|||
decoration: BoxDecoration( |
|||
color: widget.couleurCpay), |
|||
child: Padding( |
|||
padding: const EdgeInsets.all(8.0), |
|||
child: Transform.rotate( |
|||
angle: pi / 4, |
|||
child: Align( |
|||
alignment: const Alignment(0.5, -0.7), |
|||
child: FittedBox( |
|||
fit: BoxFit.scaleDown, |
|||
child: Text( |
|||
widget.reference, |
|||
style: TextStyle( |
|||
fontSize: 12.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
SizedBox( |
|||
width: 8.w, |
|||
), |
|||
Expanded( |
|||
child: SizedBox( |
|||
height: 150.w, |
|||
//color: Colors.red, |
|||
child: Column( |
|||
crossAxisAlignment: CrossAxisAlignment.start, |
|||
children: [ |
|||
// Container( |
|||
// margin: const EdgeInsets.only(bottom: 5), |
|||
// //color: Colors.green, |
|||
// child: FittedBox( |
|||
// fit: BoxFit.scaleDown, |
|||
// child: Text( |
|||
// textAlign: TextAlign.center, |
|||
// '', |
|||
// style: TextStyle( |
|||
// fontSize: 12.sp, |
|||
// fontWeight: FontWeight.bold, |
|||
// color: Colors.white, |
|||
// fontFamily: 'PlusJakartaSans', |
|||
// ), |
|||
// ), |
|||
// ), |
|||
// ), |
|||
Container( |
|||
margin: const EdgeInsets.only( |
|||
bottom: 10, right: 7, top: 20), |
|||
//color: Colors.orange, |
|||
child: Text( |
|||
//textAlign: TextAlign.center, |
|||
widget.designation, |
|||
style: TextStyle( |
|||
// shadows: [ |
|||
// Shadow( |
|||
// color: Colors.black.withOpacity(0.8), |
|||
// blurRadius: 10.0, |
|||
// offset: const Offset(0, 4), |
|||
// ), |
|||
// ], |
|||
fontSize: 12.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
), |
|||
Expanded( |
|||
child: Card( |
|||
elevation: 2, |
|||
margin: const EdgeInsets.fromLTRB( |
|||
0, 0, 7, 0), |
|||
color: widget.couleurCpay, |
|||
child: Row( |
|||
mainAxisAlignment: |
|||
MainAxisAlignment.spaceEvenly, |
|||
children: [ |
|||
const FittedBox( |
|||
fit: BoxFit.scaleDown, |
|||
child: Icon( |
|||
size: 30, |
|||
Icons.calendar_month, |
|||
color: Colors.white, |
|||
), |
|||
), |
|||
Column( |
|||
crossAxisAlignment: |
|||
CrossAxisAlignment.start, |
|||
mainAxisAlignment: |
|||
MainAxisAlignment |
|||
.spaceEvenly, |
|||
children: [ |
|||
Expanded( |
|||
child: SizedBox( |
|||
width: 150, |
|||
//color: Colors.red, |
|||
child: Align( |
|||
alignment: Alignment |
|||
.centerLeft, |
|||
child: FittedBox( |
|||
fit: BoxFit.scaleDown, |
|||
child: Text( |
|||
textAlign: TextAlign |
|||
.center, |
|||
'Ticket 50 000 MGA', |
|||
style: TextStyle( |
|||
fontSize: 12.sp, |
|||
fontWeight: |
|||
FontWeight |
|||
.bold, |
|||
color: |
|||
Colors.white, |
|||
fontFamily: |
|||
'PlusJakartaSans', |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
Container( |
|||
color: Colors.white, |
|||
width: 120, |
|||
height: 1, |
|||
), |
|||
Expanded( |
|||
child: SizedBox( |
|||
width: 150, |
|||
//color: Colors.red, |
|||
child: Align( |
|||
alignment: Alignment |
|||
.centerLeft, |
|||
child: FittedBox( |
|||
fit: BoxFit.scaleDown, |
|||
child: Text( |
|||
'${percent.toStringAsFixed(0)}% Avant tirage', |
|||
style: TextStyle( |
|||
fontSize: 12.sp, |
|||
fontWeight: |
|||
FontWeight |
|||
.normal, |
|||
color: |
|||
Colors.white, |
|||
fontFamily: |
|||
'PlusJakartaSans', |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
], |
|||
) |
|||
], |
|||
)), |
|||
), |
|||
|
|||
// StepProgressIndicator( |
|||
// totalSteps: 90, |
|||
// currentStep: 32, |
|||
// padding: 2, |
|||
// selectedColor: Color(0xFF6334A9), |
|||
// unselectedColor: Colors.white, |
|||
// roundedEdges: Radius.circular(10), |
|||
// selectedGradientColor: LinearGradient( |
|||
// begin: Alignment.topLeft, |
|||
// end: Alignment.bottomRight, |
|||
// colors: [ |
|||
// Color(0xFF6334A9).withOpacity(0.7), |
|||
// Color(0xFF6334A9) |
|||
// ], |
|||
// ), |
|||
// unselectedGradientColor: LinearGradient( |
|||
// begin: Alignment.topCenter, |
|||
// end: Alignment.topLeft, |
|||
// colors: [Colors.black, Colors.blue]), |
|||
// ) |
|||
], |
|||
), |
|||
), |
|||
) |
|||
], |
|||
), |
|||
), |
|||
SizedBox( |
|||
height: 10.sp, |
|||
), |
|||
Stack( |
|||
children: [ |
|||
FractionallySizedBox( |
|||
widthFactor: 1, |
|||
child: Container( |
|||
decoration: BoxDecoration( |
|||
color: Colors.white, |
|||
borderRadius: BorderRadius.circular(20)), |
|||
height: 7.h, |
|||
child: Padding( |
|||
padding: const EdgeInsets.all(2.0), |
|||
child: FractionallySizedBox( |
|||
alignment: Alignment.centerLeft, |
|||
widthFactor: init, |
|||
child: Container( |
|||
decoration: BoxDecoration( |
|||
color: widget.couleurCpay, |
|||
borderRadius: |
|||
BorderRadius.circular(20)), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
Align( |
|||
alignment: Alignment.center, |
|||
child: Text( |
|||
textAlign: TextAlign.center, |
|||
"${percent.toStringAsFixed(0)} %", |
|||
style: TextStyle( |
|||
// shadows: [ |
|||
// Shadow( |
|||
// color: Colors.black.withOpacity(0.8), |
|||
// blurRadius: 10.0, |
|||
// offset: const Offset(0, 4), |
|||
// ), |
|||
// ], |
|||
fontSize: 5.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.black, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
), |
|||
], |
|||
), |
|||
SizedBox( |
|||
height: 2.sp, |
|||
), |
|||
], |
|||
), |
|||
), |
|||
Align( |
|||
alignment: Alignment.topRight, |
|||
child: widget.date_tirage != '' |
|||
? Container( |
|||
padding: const EdgeInsets.all(2.0), |
|||
height: 26, |
|||
width: 100, |
|||
decoration: const BoxDecoration( |
|||
color: Colors.red, |
|||
borderRadius: BorderRadius.only( |
|||
topRight: Radius.circular(10), |
|||
bottomLeft: Radius.circular(10))), |
|||
child: Center( |
|||
child: FittedBox( |
|||
fit: BoxFit.scaleDown, |
|||
child: Text( |
|||
'Tirage dans 24:00:00', |
|||
style: TextStyle( |
|||
fontSize: 8.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
), |
|||
), |
|||
) |
|||
: const SizedBox(), |
|||
), |
|||
], |
|||
), |
|||
), |
|||
), |
|||
), |
|||
); |
|||
} |
|||
} |
|||
|
|||
class TrapeziumClipper extends CustomClipper<Path> { |
|||
@override |
|||
Path getClip(Size size) { |
|||
Path path = Path(); |
|||
path.lineTo(size.width / 2, 0); |
|||
path.lineTo(size.width, size.height / 2); |
|||
path.lineTo(size.width, size.height); |
|||
// path.lineTo(size.width, 0); |
|||
//path.close(); |
|||
return path; |
|||
} |
|||
|
|||
@override |
|||
bool shouldReclip(covariant CustomClipper<Path> oldClipper) { |
|||
return true; |
|||
} |
|||
} |
|||
@ -0,0 +1,165 @@ |
|||
import 'package:cpay/items/itemcategories.dart'; |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
class Categoris extends StatefulWidget { |
|||
final List listcat; |
|||
final Function dosearch; |
|||
final Function fuctionannuler; |
|||
static String filtre = ''; |
|||
const Categoris( |
|||
{super.key, |
|||
required this.listcat, |
|||
required this.dosearch, |
|||
required this.fuctionannuler}); |
|||
// final String id; |
|||
// final String designation; |
|||
|
|||
@override |
|||
State<Categoris> createState() => _CategorisState(); |
|||
} |
|||
|
|||
class _CategorisState extends State<Categoris> { |
|||
bool checkboxvalFourniture = true; |
|||
bool checkboxvalinformatique = true; |
|||
bool checkboxvalMode = true; |
|||
List listcat = []; |
|||
String id = ''; |
|||
static String elementrech = ''; |
|||
Map<String, String> remplacements = { |
|||
'[': '', |
|||
']': '', |
|||
' ': '', |
|||
}; |
|||
setfiltre() { |
|||
listcat = Itemcategories.listselect; |
|||
print("selected $listcat"); |
|||
elementrech = Itemcategories.listselect |
|||
.toString() |
|||
.replaceAll("[", '') |
|||
.replaceAll(']', '') |
|||
.replaceAll(" ", ""); |
|||
Categoris.filtre = elementrech; |
|||
} |
|||
|
|||
// setfiltre() { |
|||
// for (int i = 0; i < 3; i++) { |
|||
// if (i == 0) { |
|||
// elementrech.replaceAll('[', ''); |
|||
// } else if (i == 1) { |
|||
// elementrech.replaceAll(']', ''); |
|||
// } else if (i == 3) { |
|||
// elementrech.replaceAll(' ', ''); |
|||
// } |
|||
// } |
|||
// print('elem $elementrech'); |
|||
// } |
|||
|
|||
int place = -1; |
|||
Itemcategories itemcat = Itemcategories(); |
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return Scaffold( |
|||
backgroundColor: Colors.white, |
|||
body: Padding( |
|||
padding: const EdgeInsets.only(left: 30, right: 30), |
|||
child: Column( |
|||
children: [ |
|||
Align( |
|||
alignment: Alignment.centerLeft, |
|||
child: IconButton( |
|||
icon: const Icon( |
|||
Icons.close, |
|||
color: Color(0xFF6334A9), |
|||
), |
|||
onPressed: () { |
|||
widget.fuctionannuler(); |
|||
}, |
|||
), |
|||
), |
|||
Expanded( |
|||
child: ListView.builder( |
|||
itemCount: widget.listcat.length, |
|||
itemBuilder: (context, index) { |
|||
return Itemcategories( |
|||
designation: widget.listcat[index]['designation'], |
|||
idcat: widget.listcat[index]['id']); |
|||
}, |
|||
), |
|||
), |
|||
Row( |
|||
mainAxisAlignment: MainAxisAlignment.center, |
|||
children: [ |
|||
ElevatedButton( |
|||
style: ElevatedButton.styleFrom( |
|||
shape: RoundedRectangleBorder( |
|||
borderRadius: BorderRadius.circular(10)), |
|||
backgroundColor: Colors.grey), |
|||
child: Row( |
|||
mainAxisAlignment: MainAxisAlignment.center, |
|||
children: [ |
|||
Row( |
|||
//mainAxisAlignment: MainAxisAlignment.center, |
|||
children: [ |
|||
FittedBox( |
|||
fit: BoxFit.scaleDown, |
|||
child: Text( |
|||
textAlign: TextAlign.center, |
|||
'Annuler', |
|||
style: TextStyle( |
|||
fontSize: 18.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
), |
|||
], |
|||
), |
|||
], |
|||
), |
|||
onPressed: () => {}, |
|||
), |
|||
SizedBox( |
|||
width: 20.sp, |
|||
), |
|||
ElevatedButton( |
|||
style: ElevatedButton.styleFrom( |
|||
shape: RoundedRectangleBorder( |
|||
borderRadius: BorderRadius.circular(10)), |
|||
backgroundColor: const Color(0xFF6334A9)), |
|||
child: Row( |
|||
mainAxisAlignment: MainAxisAlignment.center, |
|||
children: [ |
|||
Row( |
|||
//mainAxisAlignment: MainAxisAlignment.center, |
|||
children: [ |
|||
FittedBox( |
|||
fit: BoxFit.scaleDown, |
|||
child: Text( |
|||
textAlign: TextAlign.center, |
|||
'Valider', |
|||
style: TextStyle( |
|||
fontSize: 18.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
), |
|||
], |
|||
), |
|||
], |
|||
), |
|||
onPressed: () { |
|||
setfiltre(); |
|||
widget.dosearch(); |
|||
}), |
|||
], |
|||
), |
|||
], |
|||
), |
|||
), |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,73 @@ |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
class PageTimeout extends StatelessWidget { |
|||
final Function func; |
|||
const PageTimeout({super.key, required this.func}); |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return SingleChildScrollView( |
|||
child: Column(children: [ |
|||
Container( |
|||
height: MediaQuery.of(context).size.height * 0.5, |
|||
decoration: const BoxDecoration( |
|||
image: DecorationImage( |
|||
image: AssetImage("lib/items/error/img/Sorry.jpg"))), |
|||
), |
|||
Column( |
|||
children: [ |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'Une erreur s\'est prouduit', |
|||
style: TextStyle( |
|||
fontSize: 20.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: Colors.black, |
|||
// fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
SizedBox( |
|||
width: 100.sp, |
|||
child: ElevatedButton( |
|||
style: ElevatedButton.styleFrom( |
|||
shape: RoundedRectangleBorder( |
|||
borderRadius: BorderRadius.circular(10)), |
|||
backgroundColor: const Color(0xFF6334A9)), |
|||
child: FittedBox( |
|||
fit: BoxFit.scaleDown, |
|||
child: Row( |
|||
mainAxisAlignment: MainAxisAlignment.center, |
|||
children: [ |
|||
Row( |
|||
//mainAxisAlignment: MainAxisAlignment.center, |
|||
children: [ |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'Réesayer', |
|||
style: TextStyle( |
|||
fontSize: 18.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
const Icon( |
|||
Icons.restart_alt_rounded, |
|||
color: Colors.white, |
|||
) |
|||
], |
|||
), |
|||
], |
|||
), |
|||
), |
|||
onPressed: () { |
|||
func(); |
|||
}), |
|||
), |
|||
], |
|||
) |
|||
]), |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,47 @@ |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
class PageEror extends StatelessWidget { |
|||
const PageEror({super.key}); |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return Scaffold( |
|||
body: SingleChildScrollView( |
|||
child: Column(children: [ |
|||
Container( |
|||
height: MediaQuery.of(context).size.height * 0.5, |
|||
decoration: const BoxDecoration( |
|||
image: DecorationImage( |
|||
image: AssetImage("lib/items/error/img/notfound.jpg"))), |
|||
), |
|||
Column( |
|||
children: [ |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'Element non trouvé', |
|||
style: TextStyle( |
|||
fontSize: 20.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: Colors.black, |
|||
// fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'l\'element que vous rechercher est introuvable!', |
|||
style: TextStyle( |
|||
fontSize: 10.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.black, |
|||
// fontFamily: 'PlusJakartaSans', |
|||
), |
|||
) |
|||
], |
|||
) |
|||
]), |
|||
), |
|||
); |
|||
; |
|||
} |
|||
} |
|||
|
After Width: | Height: | Size: 159 KiB |
|
After Width: | Height: | Size: 790 KiB |
|
After Width: | Height: | Size: 308 KiB |
|
After Width: | Height: | Size: 382 KiB |
|
After Width: | Height: | Size: 562 KiB |
|
After Width: | Height: | Size: 350 KiB |
@ -0,0 +1,188 @@ |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_animate/flutter_animate.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
class AlertAlert extends StatelessWidget { |
|||
const AlertAlert( |
|||
{super.key, |
|||
required this.typealert, |
|||
required this.titleAlert, |
|||
required this.descriAlert, |
|||
this.confirmbtnText = "Valider", |
|||
this.cancelbtn = false, |
|||
this.cancelbtnText = "Annuler", |
|||
this.onpresConfirm}); |
|||
|
|||
final String typealert; |
|||
final String titleAlert; |
|||
final String descriAlert; |
|||
final String cancelbtnText; |
|||
final String confirmbtnText; |
|||
final bool cancelbtn; |
|||
final VoidCallback? onpresConfirm; |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return Dialog( |
|||
child: Container( |
|||
decoration: BoxDecoration( |
|||
color: typealert == "succes" |
|||
? Colors.green |
|||
: (typealert == "error" ? Colors.red : const Color(0xFF6334A9)), |
|||
borderRadius: BorderRadius.circular(20)), |
|||
height: 300.sp, |
|||
width: MediaQuery.of(context).size.width * 0.8, |
|||
child: Center( |
|||
child: Column( |
|||
children: [ |
|||
Padding( |
|||
padding: const EdgeInsets.all(20.0), |
|||
child: Container( |
|||
decoration: BoxDecoration( |
|||
image: DecorationImage( |
|||
fit: BoxFit.cover, |
|||
image: AssetImage(typealert == "succes" |
|||
? 'lib/photos/gif_alert/succes3.gif' |
|||
: (typealert == "error" |
|||
? 'lib/photos/gif_alert/error.gif' |
|||
: (typealert == "warning" |
|||
? 'lib/photos/gif_alert/warning.gif' |
|||
: (typealert == "info" |
|||
? 'lib/photos/gif_alert/informaton2.gif' |
|||
: 'lib/photos/gif_alert/doyouwant1.gif'))))), |
|||
borderRadius: BorderRadius.circular(60.sp)), |
|||
height: 100.sp, |
|||
width: 100.sp, |
|||
), |
|||
), |
|||
Expanded( |
|||
child: FractionallySizedBox( |
|||
widthFactor: 1, |
|||
child: Container( |
|||
decoration: const BoxDecoration( |
|||
color: Colors.white, |
|||
borderRadius: BorderRadius.only( |
|||
bottomLeft: Radius.circular(20), |
|||
bottomRight: Radius.circular(20))), |
|||
child: Column( |
|||
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|||
children: [ |
|||
Column( |
|||
children: [ |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
titleAlert, |
|||
style: TextStyle( |
|||
fontSize: 20.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: Colors.black, |
|||
// fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
SizedBox( |
|||
height: 15.sp, |
|||
), |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
descriAlert, |
|||
style: TextStyle( |
|||
fontSize: 12.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.black, |
|||
// fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
], |
|||
), |
|||
cancelbtn == true |
|||
? Padding( |
|||
padding: const EdgeInsets.all(8.0), |
|||
child: FittedBox( |
|||
fit: BoxFit.scaleDown, |
|||
child: Row( |
|||
mainAxisAlignment: |
|||
MainAxisAlignment.spaceAround, |
|||
children: [ |
|||
ElevatedButton( |
|||
onPressed: () { |
|||
Navigator.pop(context); |
|||
}, |
|||
style: ElevatedButton.styleFrom( |
|||
backgroundColor: Colors.grey, |
|||
shape: RoundedRectangleBorder( |
|||
borderRadius: |
|||
BorderRadius.circular(20), |
|||
)), |
|||
child: FittedBox( |
|||
fit: BoxFit.scaleDown, |
|||
child: Text( |
|||
textAlign: TextAlign.center, |
|||
cancelbtnText, |
|||
style: TextStyle( |
|||
fontSize: 15.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
), |
|||
), |
|||
SizedBox( |
|||
width: 10.sp, |
|||
), |
|||
ElevatedButton( |
|||
onPressed: onpresConfirm, |
|||
style: ElevatedButton.styleFrom( |
|||
backgroundColor: |
|||
const Color(0xFF6334A9), |
|||
shape: RoundedRectangleBorder( |
|||
borderRadius: |
|||
BorderRadius.circular(20), |
|||
)), |
|||
child: FittedBox( |
|||
fit: BoxFit.scaleDown, |
|||
child: Text( |
|||
textAlign: TextAlign.center, |
|||
confirmbtnText, |
|||
style: TextStyle( |
|||
fontSize: 15.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
), |
|||
) |
|||
], |
|||
), |
|||
), |
|||
) |
|||
: ElevatedButton( |
|||
onPressed: onpresConfirm, |
|||
style: ElevatedButton.styleFrom( |
|||
backgroundColor: const Color(0xFF6334A9), |
|||
shape: RoundedRectangleBorder( |
|||
borderRadius: BorderRadius.circular(20), |
|||
)), |
|||
child: Text( |
|||
textAlign: TextAlign.center, |
|||
confirmbtnText, |
|||
style: TextStyle( |
|||
fontSize: 15.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
) |
|||
], |
|||
), |
|||
), |
|||
)) |
|||
], |
|||
), |
|||
), |
|||
), |
|||
).animate().scale(duration: const Duration(milliseconds: 100)); |
|||
} |
|||
} |
|||
@ -0,0 +1,84 @@ |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
class Itemcategories extends StatefulWidget { |
|||
const Itemcategories({ |
|||
super.key, |
|||
this.designation = '', |
|||
this.idcat = '', |
|||
}); |
|||
final String designation; |
|||
final String idcat; |
|||
static String idrcu = ''; |
|||
static List listselect = []; |
|||
//static String idid = _ItemcategoriesState.idid; |
|||
@override |
|||
State<Itemcategories> createState() => _ItemcategoriesState(); |
|||
} |
|||
|
|||
class _ItemcategoriesState extends State<Itemcategories> { |
|||
bool checkboxvalFourniture = false; |
|||
setActivation() { |
|||
if (Itemcategories.listselect.contains(widget.idcat)) { |
|||
setState(() { |
|||
checkboxvalFourniture = true; |
|||
}); |
|||
} |
|||
} |
|||
|
|||
filllist() { |
|||
if (!Itemcategories.listselect.contains(widget.idcat)) { |
|||
Itemcategories.listselect.add(widget.idcat); |
|||
} |
|||
} |
|||
|
|||
//static String idid = ''; |
|||
@override |
|||
void initState() { |
|||
// TODO: implement initState |
|||
//filllist(); |
|||
setActivation(); |
|||
super.initState(); |
|||
} |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return Card( |
|||
color: const Color(0xFF6334A9).withOpacity(0.7), |
|||
child: ListTile( |
|||
title: Text( |
|||
//textAlign: TextAlign.start, |
|||
widget.designation, |
|||
style: TextStyle( |
|||
fontSize: 15.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
trailing: Switch( |
|||
onChanged: (bool? value) { |
|||
if (value != null) { |
|||
setState(() { |
|||
checkboxvalFourniture = value; |
|||
// print(widget.idcat); |
|||
|
|||
// list.add(widget.idcat); |
|||
// print(list); |
|||
Itemcategories.idrcu = widget.idcat; |
|||
if (Itemcategories.listselect.contains(widget.idcat)) { |
|||
Itemcategories.listselect |
|||
.removeWhere((element) => element == widget.idcat); |
|||
} else { |
|||
Itemcategories.listselect.add(widget.idcat); |
|||
} |
|||
// Itemcategories.listselect.add(widget.idcat); |
|||
}); |
|||
} |
|||
}, |
|||
value: checkboxvalFourniture, |
|||
), |
|||
), |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,27 @@ |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
import 'achatapiitem.dart'; |
|||
|
|||
// |
|||
class AchatApis extends StatelessWidget { |
|||
const AchatApis({super.key, required this.list, required this.control}); |
|||
// |
|||
final List list; |
|||
// final Map<String, dynamic> list; |
|||
final ScrollController control; |
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return ListView.builder( |
|||
controller: control, |
|||
itemCount: list.length, |
|||
itemBuilder: (context, index) => SizedBox( |
|||
height: 70.spMax, |
|||
child: AchatApisItem( |
|||
status: list[index]["status_payment"], |
|||
date: list[index]["date"], |
|||
montant: list[index]["montant"], |
|||
info: list[index]["infos"], |
|||
))); |
|||
} |
|||
} |
|||
@ -0,0 +1,76 @@ |
|||
//import 'package:cpay/models/depottransaction.dart'; |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
class AchatApisItem extends StatelessWidget { |
|||
const AchatApisItem( |
|||
{super.key, |
|||
required this.status, |
|||
required this.date, |
|||
required this.montant, |
|||
required this.info}); |
|||
final String status; |
|||
final String date; |
|||
final String montant; |
|||
final String info; |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
double screenwidth = MediaQuery.of(context).size.height; |
|||
return Scaffold( |
|||
body: Center( |
|||
child: SizedBox( |
|||
width: screenwidth * 0.8, |
|||
child: Card( |
|||
elevation: 2, |
|||
color: Colors.white, |
|||
child: ListTile( |
|||
title: Text( |
|||
status, |
|||
style: TextStyle( |
|||
fontSize: 13.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: const Color(0xFF6334A9), |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
subtitle: Text( |
|||
date, |
|||
style: TextStyle( |
|||
fontSize: 10.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.grey, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
trailing: Text( |
|||
"$montant MGA", |
|||
style: TextStyle( |
|||
fontSize: 12.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: const Color(0xFF6334A9), |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
leading: Container( |
|||
decoration: BoxDecoration( |
|||
borderRadius: BorderRadius.circular(50.sp), |
|||
color: const Color(0xFF6334A9).withOpacity(0.5)), |
|||
child: IconButton( |
|||
icon: Image( |
|||
width: 30.sp, |
|||
height: 30.sp, |
|||
image: info == "MVOLA" |
|||
? const AssetImage('lib/photos/mvola.webp') |
|||
: const AssetImage('lib/photos/banktransfert.png'), |
|||
), |
|||
onPressed: () {}, |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,59 @@ |
|||
import 'dart:convert'; |
|||
|
|||
import 'package:cpay/items/itemsTab/depotitem.dart'; |
|||
import 'package:cpay/items/loadinglistview.dart'; |
|||
import 'package:cpay/pages/plusInfo.dart'; |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
// |
|||
class DepotListe extends StatelessWidget { |
|||
const DepotListe( |
|||
{super.key, |
|||
required this.list, |
|||
required this.control, |
|||
required this.loadlist}); |
|||
// |
|||
final List list; |
|||
final bool loadlist; |
|||
// final Map<String, dynamic> list; |
|||
final ScrollController control; |
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return Column( |
|||
children: [ |
|||
Expanded( |
|||
child: ListView.builder( |
|||
controller: control, |
|||
itemCount: list.length, |
|||
itemBuilder: (context, index) => SizedBox( |
|||
height: 70.spMax, |
|||
child: GestureDetector( |
|||
onTap: () { |
|||
if (list[index]['application'] != "MVOLA") { |
|||
Navigator.push( |
|||
context, |
|||
MaterialPageRoute( |
|||
builder: (context) => InfoBnc( |
|||
list: List<Map<String, dynamic>>.from( |
|||
jsonDecode( |
|||
list[index]['application'])), |
|||
))); |
|||
} |
|||
}, |
|||
child: DepotItem( |
|||
status: list[index]["status_payment"], |
|||
date: list[index]["date"], |
|||
montant: list[index]["montant"], |
|||
application: list[index]["application"], |
|||
), |
|||
))), |
|||
), |
|||
Visibility( |
|||
visible: loadlist, |
|||
child: const SizedBox(height: 10, child: LoadingLisview()), |
|||
) |
|||
], |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,76 @@ |
|||
//import 'package:cpay/models/depottransaction.dart'; |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
class DepotItem extends StatelessWidget { |
|||
const DepotItem( |
|||
{super.key, |
|||
required this.status, |
|||
required this.date, |
|||
required this.montant, |
|||
required this.application}); |
|||
final String status; |
|||
final String date; |
|||
final String montant; |
|||
final String application; |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
double screenwidth = MediaQuery.of(context).size.width; |
|||
return Scaffold( |
|||
body: Center( |
|||
child: SizedBox( |
|||
width: screenwidth * 0.9, |
|||
child: Card( |
|||
elevation: 2, |
|||
color: Colors.white, |
|||
child: ListTile( |
|||
title: Text( |
|||
status, |
|||
style: TextStyle( |
|||
fontSize: 13.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: const Color(0xFF6334A9), |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
subtitle: Text( |
|||
date, |
|||
style: TextStyle( |
|||
fontSize: 10.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.grey, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
trailing: Text( |
|||
"$montant MGA", |
|||
style: TextStyle( |
|||
fontSize: 12.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: const Color(0xFF6334A9), |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
leading: Container( |
|||
decoration: BoxDecoration( |
|||
borderRadius: BorderRadius.circular(50.sp), |
|||
color: const Color(0xFF6334A9).withOpacity(0.5)), |
|||
child: IconButton( |
|||
icon: Image( |
|||
width: 30.sp, |
|||
height: 30.sp, |
|||
image: application == "MVOLA" |
|||
? const AssetImage('lib/photos/mvola.webp') |
|||
: const AssetImage('lib/photos/banktransfert.png'), |
|||
), |
|||
onPressed: () {}, |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,26 @@ |
|||
import 'package:cpay/items/itemsTab/retraititem.dart'; |
|||
|
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
// |
|||
class Retrait extends StatelessWidget { |
|||
const Retrait({super.key, required this.list, required this.control}); |
|||
// |
|||
final List list; |
|||
// final Map<String, dynamic> list; |
|||
final ScrollController control; |
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return ListView.builder( |
|||
controller: control, |
|||
itemCount: list.length, |
|||
itemBuilder: (context, index) => SizedBox( |
|||
height: 70.spMax, |
|||
child: RetraitItem( |
|||
status: list[index]["status_payment"], |
|||
date: list[index]["date"], |
|||
montant: list[index]["montant"], |
|||
))); |
|||
} |
|||
} |
|||
@ -0,0 +1,74 @@ |
|||
//import 'package:cpay/models/depottransaction.dart'; |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
class RetraitItem extends StatelessWidget { |
|||
const RetraitItem({ |
|||
super.key, |
|||
required this.status, |
|||
required this.date, |
|||
required this.montant, |
|||
}); |
|||
final String status; |
|||
final String date; |
|||
final String montant; |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
double screenwidth = MediaQuery.of(context).size.height; |
|||
return Scaffold( |
|||
body: Center( |
|||
child: SizedBox( |
|||
width: screenwidth * 0.8, |
|||
child: Card( |
|||
elevation: 2, |
|||
color: Colors.white, |
|||
child: ListTile( |
|||
title: Text( |
|||
status, |
|||
style: TextStyle( |
|||
fontSize: 13.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: const Color(0xFF6334A9), |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
subtitle: Text( |
|||
date, |
|||
style: TextStyle( |
|||
fontSize: 10.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.grey, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
trailing: Text( |
|||
"$montant MGA", |
|||
style: TextStyle( |
|||
fontSize: 12.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: const Color(0xFF6334A9), |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
leading: Container( |
|||
decoration: BoxDecoration( |
|||
borderRadius: BorderRadius.circular(50.sp), |
|||
color: const Color(0xFF6334A9).withOpacity(0.5)), |
|||
child: IconButton( |
|||
icon: Image( |
|||
width: 30.sp, |
|||
height: 30.sp, |
|||
image: const AssetImage('lib/photos/285-min.png') |
|||
// : const AssetImage('lib/photos/banktransfert.png'), |
|||
), |
|||
onPressed: () {}, |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,501 @@ |
|||
import 'dart:convert'; |
|||
|
|||
//import 'package:cpay/api/api.dart'; |
|||
//import 'package:cpay/items/loading.dart'; |
|||
//import 'package:cpay/models/modeltrade.dart'; |
|||
import 'package:cpay/models/modeltradenet.dart'; |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
import 'package:http/http.dart'; |
|||
import 'package:syncfusion_flutter_charts/charts.dart'; |
|||
import 'package:intl/intl.dart'; |
|||
import 'package:syncfusion_flutter_sliders/sliders.dart'; |
|||
|
|||
class Trading extends StatefulWidget { |
|||
const Trading({super.key}); |
|||
|
|||
@override |
|||
State<Trading> createState() => _TradingState(); |
|||
} |
|||
|
|||
class _TradingState extends State<Trading> { |
|||
Map<String, dynamic> titlelist = {}; |
|||
late SfRangeValues _rangeValues; |
|||
List<Modeltradenet> chartDatatrade = []; |
|||
List<Modeltradenet> chartDatatrade2 = []; |
|||
CrosshairBehavior crosshairBehavior = |
|||
CrosshairBehavior(enable: true, activationMode: ActivationMode.singleTap); |
|||
DateTime lastDataPointX = DateTime.now(); |
|||
double lastDataPointY = 0.0; |
|||
bool loading = false; |
|||
late TrackballBehavior _trackballBehavior; |
|||
// afficherligne() { |
|||
// setState(() { |
|||
// //print(chartDatatrade2); |
|||
// // Rafraîchissez le graphique après chaque mise à jour des données |
|||
// //if (chartDatatrade.isNotEmpty) { |
|||
// lastDataPointX = chartDatatrade.first.date; |
|||
// lastDataPointY = chartDatatrade.first.close; |
|||
// // crosshairBehavior.show(lastDataPointX, lastDataPointY); |
|||
// // _trackballBehavior.show(lastDataPointX, lastDataPointY); |
|||
|
|||
// //} |
|||
// }); |
|||
// } |
|||
|
|||
gettrade() async { |
|||
try { |
|||
chartDatatrade2.clear(); |
|||
var requeset = await get(Uri.parse( |
|||
"https://www.alphavantage.co/query?function=FX_INTRADAY&from_symbol=EUR&to_symbol=USD&interval=5min&apikey=demo")); |
|||
if (requeset.statusCode == 200) { |
|||
if (mounted) { |
|||
setState(() { |
|||
var data = jsonDecode(requeset.body); |
|||
chartDatatrade = listaftertransform(data["Time Series FX (5min)"]); |
|||
chartDatatrade2.add(chartDatatrade[0]); |
|||
// chartDatatrade2 = |
|||
// listaftertransform(data["Time Series FX (5min)"][0]); |
|||
titlelist = data["Meta Data"]; |
|||
|
|||
lastDataPointX = chartDatatrade.first.date; |
|||
lastDataPointY = chartDatatrade.first.close; |
|||
}); |
|||
} |
|||
Future.delayed(const Duration(minutes: 5), () { |
|||
gettrade(); |
|||
}); |
|||
|
|||
// Modeltradenet modeltradenet = |
|||
// Modeltradenet.fromJson(data["Time Series FX (5min)"]); |
|||
// list.add(modeltradenet); |
|||
// data["Time Series FX (5min)"]['$formattedDateTime:00']); |
|||
//print(data["Time Series (1min)"]); |
|||
//print(modeltradenet); |
|||
//return (modeltradenet); |
|||
// Future.delayed(Duration(minutes: 5), () { |
|||
// getapitrading(); |
|||
// }); |
|||
} else { |
|||
return null; |
|||
} |
|||
} catch (error) { |
|||
return error; |
|||
} |
|||
} |
|||
|
|||
@override |
|||
void initState() { |
|||
// _chartData = getChartData(); |
|||
gettrade(); |
|||
_rangeValues = SfRangeValues( |
|||
DateTime(2023, 9, 25, 10, 00), DateTime(2023, 9, 25, 15, 00)); |
|||
//_chartDatatrade = listaftertransform(Api.getapitrading()); |
|||
_trackballBehavior = TrackballBehavior( |
|||
enable: true, activationMode: ActivationMode.singleTap); |
|||
|
|||
super.initState(); |
|||
} |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return SafeArea( |
|||
child: |
|||
// loading |
|||
// ? const Loading(spincouleur: Colors.red, containcouleur: Colors.white) |
|||
// : |
|||
Scaffold( |
|||
body: Center( |
|||
child: Column( |
|||
children: [ |
|||
SizedBox( |
|||
height: 20.sp, |
|||
), |
|||
Container( |
|||
decoration: BoxDecoration( |
|||
color: const Color(0xFF6334A9).withOpacity(0.8), |
|||
borderRadius: BorderRadius.all(Radius.circular(10.sp))), |
|||
width: MediaQuery.of(context).size.width * 0.8, |
|||
height: 60.sp, |
|||
child: Padding( |
|||
padding: const EdgeInsets.all(8.0), |
|||
child: Row( |
|||
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|||
children: [ |
|||
Column( |
|||
mainAxisAlignment: MainAxisAlignment.center, |
|||
children: [ |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'\$50 000', |
|||
style: TextStyle( |
|||
fontSize: 15.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.red, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'demo balance', |
|||
style: TextStyle( |
|||
fontSize: 9.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
], |
|||
), |
|||
Container( |
|||
color: Colors.white, |
|||
width: 1, |
|||
), |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'Finances', |
|||
style: TextStyle( |
|||
fontSize: 15.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
], |
|||
), |
|||
), |
|||
), |
|||
SfRangeSelector( |
|||
activeColor: Colors.red, |
|||
min: DateTime(2023, 9, 25, 5, 00), |
|||
max: DateTime(2023, 9, 25, 16, 00), |
|||
initialValues: _rangeValues, |
|||
showTicks: true, |
|||
enableTooltip: true, |
|||
dateFormat: DateFormat.y(), |
|||
dateIntervalType: DateIntervalType.hours, |
|||
stepDuration: SliderStepDuration(hours: 1), |
|||
onChanged: (SfRangeValues newValues) { |
|||
print(newValues); |
|||
}, |
|||
child: SfCartesianChart( |
|||
trackballBehavior: _trackballBehavior, |
|||
crosshairBehavior: CrosshairBehavior( |
|||
enable: true, activationMode: ActivationMode.singleTap), |
|||
annotations: <CartesianChartAnnotation>[ |
|||
//Annotations personnalisées pour les signaux d'achat/vente |
|||
CartesianChartAnnotation( |
|||
region: AnnotationRegion.plotArea, |
|||
widget: Container( |
|||
width: 100, |
|||
height: 200, |
|||
color: Colors.orange.withOpacity(0.3), |
|||
// decoration: BoxDecoration( |
|||
// color: const Color(0xFF6334A9), |
|||
// borderRadius: BorderRadius.circular(50)), |
|||
// child: Padding( |
|||
// padding: const EdgeInsets.all(8.0), |
|||
// child: Text( |
|||
// lastDataPointY.toString(), |
|||
// style: TextStyle(color: Colors.white), |
|||
// ), |
|||
// ), |
|||
// height: 40, |
|||
// width: 40, |
|||
//child: Text('hello'), |
|||
), |
|||
//x: DateTime.now().microsecondsSinceEpoch, |
|||
coordinateUnit: CoordinateUnit.point, |
|||
x: lastDataPointX.add( |
|||
Duration(hours: 10)), // Position x en tant que date |
|||
y: lastDataPointY, |
|||
// Valeur de l'axe Y où afficher le signal d'achat |
|||
), |
|||
|
|||
//Ajoutez plus d'annotations pour d'autres signaux d'achat/vente |
|||
], |
|||
//crosshairBehavior: crosshairBehavior, |
|||
zoomPanBehavior: ZoomPanBehavior( |
|||
//maximumZoomLevel: 0.1, |
|||
enablePanning: true, |
|||
enablePinching: true, |
|||
zoomMode: ZoomMode.x), |
|||
title: ChartTitle( |
|||
text: |
|||
"${titlelist["2. From Symbol"]}/${titlelist["3. To Symbol"]}"), |
|||
//legend: const Legend(isVisible: true), |
|||
//trackballBehavior: _trackballBehavior, |
|||
series: <ChartSeries>[ |
|||
AreaSeries<Modeltradenet, DateTime>( |
|||
borderColor: const Color(0xFF6334A9), |
|||
borderWidth: 1, |
|||
color: const Color(0xFF6334A9).withOpacity(0.2), |
|||
dataSource: chartDatatrade, |
|||
xValueMapper: (Modeltradenet sales, _) => sales.date, |
|||
yValueMapper: (Modeltradenet sales, _) => sales.close, |
|||
|
|||
// lowValueMapper: (Modeltradenet sales, _) => sales.low, |
|||
// highValueMapper: (Modeltradenet sales, _) => sales.high, |
|||
// openValueMapper: (Modeltradenet sales, _) => sales.open, |
|||
// closeValueMapper: (Modeltradenet sales, _) => sales.close, |
|||
), |
|||
SplineSeries<Modeltradenet, DateTime>( |
|||
dataSource: chartDatatrade2, |
|||
color: const Color(0xFF6334A9), |
|||
width: 2, |
|||
xValueMapper: (Modeltradenet sales, _) => sales.date, |
|||
yValueMapper: (Modeltradenet sales, _) => sales.close, |
|||
markerSettings: MarkerSettings( |
|||
isVisible: true, // Afficher les marqueurs |
|||
shape: DataMarkerType |
|||
.horizontalLine, // Forme du marqueur (circle, square, etc.) |
|||
color: const Color(0xFF6334A9) |
|||
.withOpacity(0.5), // Couleur des marqueurs |
|||
width: 1000, // Largeur des marqueurs |
|||
), |
|||
dataLabelSettings: const DataLabelSettings( |
|||
offset: Offset(-50, 25), |
|||
useSeriesColor: true, |
|||
borderWidth: 2, |
|||
borderColor: Color(0xFF6334A9), |
|||
// connectorLineSettings: ConnectorLineSettings( |
|||
// width: 2, color: Colors.red, type: ConnectorType.curve), |
|||
isVisible: true, |
|||
alignment: ChartAlignment.center, |
|||
labelAlignment: ChartDataLabelAlignment.bottom, |
|||
), |
|||
), |
|||
SplineSeries<Modeltradenet, DateTime>( |
|||
dataSource: chartDatatrade2, |
|||
color: const Color(0xFF6334A9), |
|||
width: 2, |
|||
xValueMapper: (Modeltradenet sales, _) => sales.date, |
|||
yValueMapper: (Modeltradenet sales, _) => sales.close, |
|||
markerSettings: MarkerSettings( |
|||
isVisible: true, // Afficher les marqueurs |
|||
shape: DataMarkerType |
|||
.circle, // Forme du marqueur (circle, square, etc.) |
|||
color: Colors.white |
|||
.withOpacity(0.5), // Couleur des marqueurs |
|||
width: 4, // Largeur des marqueurs |
|||
), |
|||
) |
|||
], |
|||
primaryXAxis: DateTimeAxis( |
|||
maximum: DateTime.now().add(const Duration(minutes: 15)), |
|||
dateFormat: DateFormat.Hms(), |
|||
majorGridLines: const MajorGridLines(width: 0)), |
|||
primaryYAxis: NumericAxis( |
|||
isVisible: true, |
|||
majorGridLines: |
|||
const MajorGridLines(color: Colors.transparent), |
|||
minorGridLines: |
|||
const MinorGridLines(color: Colors.transparent), |
|||
// minimum: 1, |
|||
// maximum: 1, |
|||
// interval: 0.001, |
|||
// numberFormat: |
|||
// NumberFormat.simpleCurrency(decimalDigits: 0) |
|||
), |
|||
), |
|||
), |
|||
const SizedBox( |
|||
height: 20, |
|||
), |
|||
Row( |
|||
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|||
children: [ |
|||
Container( |
|||
height: 50.sp, |
|||
decoration: BoxDecoration( |
|||
color: const Color(0xFF6334A9).withOpacity(0.8), |
|||
borderRadius: BorderRadius.all(Radius.circular(10.sp))), |
|||
//height: 40.sp, |
|||
child: Padding( |
|||
padding: const EdgeInsets.all(8.0), |
|||
child: Row( |
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|||
children: [ |
|||
IconButton( |
|||
iconSize: 12, |
|||
color: Colors.white, |
|||
onPressed: () {}, |
|||
icon: const Icon(Icons.horizontal_rule_outlined)), |
|||
Column( |
|||
mainAxisAlignment: MainAxisAlignment.center, |
|||
children: [ |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'\$30 000', |
|||
style: TextStyle( |
|||
fontSize: 15.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.black, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
FittedBox( |
|||
child: Text( |
|||
textAlign: TextAlign.center, |
|||
'investissemnt', |
|||
style: TextStyle( |
|||
fontSize: 8.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
), |
|||
], |
|||
), |
|||
IconButton( |
|||
iconSize: 12, |
|||
color: Colors.white, |
|||
onPressed: () {}, |
|||
icon: const Icon(Icons.add)), |
|||
], |
|||
), |
|||
), |
|||
), |
|||
Container( |
|||
height: 50.sp, |
|||
decoration: BoxDecoration( |
|||
color: const Color(0xFF6334A9).withOpacity(0.8), |
|||
borderRadius: BorderRadius.all(Radius.circular(10.sp))), |
|||
//height: 40.sp, |
|||
child: Padding( |
|||
padding: const EdgeInsets.all(8.0), |
|||
child: Row( |
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|||
children: [ |
|||
IconButton( |
|||
iconSize: 12, |
|||
color: Colors.white, |
|||
onPressed: () {}, |
|||
icon: const Icon( |
|||
Icons.keyboard_arrow_down_outlined)), |
|||
Column( |
|||
mainAxisAlignment: MainAxisAlignment.center, |
|||
children: [ |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'\$10 000', |
|||
style: TextStyle( |
|||
fontSize: 15.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.black, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
FittedBox( |
|||
child: Text( |
|||
textAlign: TextAlign.center, |
|||
'Strike rale', |
|||
style: TextStyle( |
|||
fontSize: 8.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
), |
|||
], |
|||
), |
|||
IconButton( |
|||
iconSize: 12, |
|||
color: Colors.white, |
|||
onPressed: () {}, |
|||
icon: |
|||
const Icon(Icons.keyboard_arrow_up_outlined)), |
|||
], |
|||
), |
|||
), |
|||
), |
|||
], |
|||
), |
|||
SizedBox( |
|||
height: 20.sp, |
|||
), |
|||
Padding( |
|||
padding: const EdgeInsets.all(8.0), |
|||
child: Row( |
|||
children: [ |
|||
Expanded( |
|||
child: ElevatedButton( |
|||
style: ElevatedButton.styleFrom( |
|||
backgroundColor: Colors.red, |
|||
shape: RoundedRectangleBorder( |
|||
borderRadius: BorderRadius.circular(10))), |
|||
onPressed: () {}, |
|||
child: Column( |
|||
children: [ |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'Sell', |
|||
style: TextStyle( |
|||
fontSize: 15.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'50%', |
|||
style: TextStyle( |
|||
fontSize: 10.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
], |
|||
), |
|||
), |
|||
), |
|||
SizedBox( |
|||
width: 20.sp, |
|||
), |
|||
Expanded( |
|||
child: ElevatedButton( |
|||
style: ElevatedButton.styleFrom( |
|||
backgroundColor: Colors.green, |
|||
shape: RoundedRectangleBorder( |
|||
borderRadius: BorderRadius.circular(10))), |
|||
onPressed: () {}, |
|||
child: Column( |
|||
children: [ |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'Buy', |
|||
style: TextStyle( |
|||
fontSize: 15.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
'20%', |
|||
style: TextStyle( |
|||
fontSize: 10.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.white, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
], |
|||
), |
|||
), |
|||
) |
|||
], |
|||
), |
|||
) |
|||
], |
|||
), |
|||
), |
|||
), |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,94 @@ |
|||
import 'package:cpay/items/itemsTab/virementitem.dart'; |
|||
|
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
// |
|||
class Virement extends StatefulWidget { |
|||
const Virement({super.key, required this.list, required this.control}); |
|||
// |
|||
final List list; |
|||
|
|||
final ScrollController control; |
|||
|
|||
@override |
|||
State<Virement> createState() => _VirementState(); |
|||
} |
|||
|
|||
class _VirementState extends State<Virement> { |
|||
int place = -1; |
|||
List listplace = []; |
|||
double heightmin = 70; |
|||
bool zoom = true; |
|||
setHeight() { |
|||
if (heightmin == 70) { |
|||
setState(() { |
|||
heightmin = 100; |
|||
}); |
|||
} |
|||
} |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return ListView.builder( |
|||
controller: widget.control, |
|||
itemCount: widget.list.length, |
|||
itemBuilder: (context, index) { |
|||
return GestureDetector( |
|||
onTap: () { |
|||
setHeight(); |
|||
setState(() { |
|||
place = index; |
|||
listplace.add(place); |
|||
}); |
|||
if (listplace.length >= 2) { |
|||
if (listplace[0] == listplace[1]) { |
|||
Future.delayed(const Duration(milliseconds: 100), () { |
|||
setState(() { |
|||
heightmin = 70; |
|||
listplace.clear(); |
|||
// zoom = true; |
|||
}); |
|||
}); |
|||
} |
|||
listplace.clear(); |
|||
listplace.add(place); |
|||
} |
|||
}, |
|||
child: Builder(builder: (context) { |
|||
if (place == index) { |
|||
return AnimatedContainer( |
|||
duration: const Duration(milliseconds: 500), |
|||
curve: Curves.fastOutSlowIn, |
|||
height: heightmin.spMax, |
|||
child: VirementItem( |
|||
affiche: heightmin == 70 ? false : true, |
|||
status: widget.list[index]["status_payment"], |
|||
date: widget.list[index]["date"], |
|||
montant: widget.list[index]["montant"], |
|||
type: widget.list[index]["type"], |
|||
periodicite: widget.list[index]["periodicite"].toString(), |
|||
destination: widget.list[index]["destination"], |
|||
motif: widget.list[index]["motif"], |
|||
)); |
|||
} else { |
|||
return AnimatedContainer( |
|||
duration: const Duration(milliseconds: 100), |
|||
curve: Curves.fastOutSlowIn, |
|||
height: 70.spMax, |
|||
child: VirementItem( |
|||
affiche: false, |
|||
status: widget.list[index]["status_payment"], |
|||
date: widget.list[index]["date"], |
|||
montant: widget.list[index]["montant"], |
|||
type: widget.list[index]["type"], |
|||
periodicite: widget.list[index]["periodicite"].toString(), |
|||
destination: widget.list[index]["destination"], |
|||
motif: widget.list[index]["motif"], |
|||
)); |
|||
} |
|||
}), |
|||
); |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,210 @@ |
|||
//import 'package:cpay/models/depottransaction.dart'; |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_animate/flutter_animate.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
class VirementItem extends StatefulWidget { |
|||
const VirementItem({ |
|||
super.key, |
|||
required this.status, |
|||
required this.date, |
|||
required this.montant, |
|||
required this.type, |
|||
required this.periodicite, |
|||
required this.destination, |
|||
required this.motif, |
|||
required this.affiche, |
|||
}); |
|||
final String status; |
|||
final String date; |
|||
final String montant; |
|||
final String type; |
|||
final String periodicite; |
|||
final String destination; |
|||
final String motif; |
|||
final bool affiche; |
|||
|
|||
@override |
|||
State<VirementItem> createState() => _VirementItemState(); |
|||
} |
|||
|
|||
class _VirementItemState extends State<VirementItem> |
|||
with SingleTickerProviderStateMixin { |
|||
//late AnimationController _animcontroller; |
|||
|
|||
// affichemore(bool afficher) { |
|||
// if (!afficher) { |
|||
// setState(() { |
|||
// afficher = true; |
|||
// }); |
|||
// } else { |
|||
// setState(() { |
|||
// afficher = false; |
|||
// }); |
|||
// } |
|||
// } |
|||
|
|||
// setcontrol() { |
|||
// if (afficher) { |
|||
// _animcontroller.forward(); |
|||
// } else { |
|||
// _animcontroller.reverse(); |
|||
// } |
|||
// } |
|||
|
|||
// @override |
|||
// void initState() { |
|||
|
|||
// super.initState(); |
|||
// _animcontroller = AnimationController( |
|||
// vsync: this, duration: const Duration(milliseconds: 200)); |
|||
// } |
|||
|
|||
// @override |
|||
// void dispose() { |
|||
|
|||
// _animcontroller.dispose(); |
|||
// super.dispose(); |
|||
// } |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
double screenwidth = MediaQuery.of(context).size.height; |
|||
return Scaffold( |
|||
body: Center( |
|||
child: SizedBox( |
|||
width: screenwidth * 0.8, |
|||
child: Card( |
|||
elevation: 2, |
|||
color: Colors.white, |
|||
child: ListTile( |
|||
//title: |
|||
// Text( |
|||
// status, |
|||
// style: TextStyle( |
|||
// fontSize: 13.sp, |
|||
// fontWeight: FontWeight.bold, |
|||
// color: const Color(0xFF6334A9), |
|||
// fontFamily: 'PlusJakartaSans', |
|||
// ), |
|||
// ), |
|||
subtitle: SizedBox( |
|||
// duration: Duration(milliseconds: 500), |
|||
// curve: Curves.fastOutSlowIn, |
|||
//color: Colors.amber, |
|||
height: widget.affiche == false ? 100.sp : 85.sp, |
|||
child: SingleChildScrollView( |
|||
child: Column( |
|||
crossAxisAlignment: CrossAxisAlignment.start, |
|||
mainAxisAlignment: MainAxisAlignment.center, |
|||
children: [ |
|||
Column( |
|||
crossAxisAlignment: CrossAxisAlignment.start, |
|||
children: [ |
|||
Text( |
|||
widget.status, |
|||
style: TextStyle( |
|||
fontSize: 13.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: const Color(0xFF6334A9), |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
Text( |
|||
widget.date, |
|||
style: TextStyle( |
|||
fontSize: 10.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.grey, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
Text( |
|||
widget.destination, |
|||
style: TextStyle( |
|||
fontSize: 10.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.grey, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
], |
|||
), |
|||
Visibility( |
|||
visible: widget.affiche, |
|||
child: Column( |
|||
crossAxisAlignment: CrossAxisAlignment.start, |
|||
children: [ |
|||
Text( |
|||
widget.type, |
|||
style: TextStyle( |
|||
fontSize: 10.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.grey, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
Text( |
|||
widget.motif, |
|||
style: TextStyle( |
|||
fontSize: 10.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.grey, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
// Text( |
|||
// periodicite, |
|||
// style: TextStyle( |
|||
// fontSize: 10.sp, |
|||
// fontWeight: FontWeight.normal, |
|||
// color: Colors.grey, |
|||
// fontFamily: 'PlusJakartaSans', |
|||
// ), |
|||
// ), |
|||
], |
|||
).animate().fade(duration: const Duration(seconds: 1)), |
|||
) |
|||
], |
|||
), |
|||
), |
|||
), |
|||
// Text( |
|||
// "$date\n$destination\n$type\n$motif", |
|||
// style: TextStyle( |
|||
// fontSize: 10.sp, |
|||
// fontWeight: FontWeight.normal, |
|||
// color: Colors.grey, |
|||
// fontFamily: 'PlusJakartaSans', |
|||
// ), |
|||
// ), |
|||
trailing: Text( |
|||
"${widget.montant} MGA", |
|||
style: TextStyle( |
|||
fontSize: 12.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: const Color(0xFF6334A9), |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
leading: Container( |
|||
decoration: BoxDecoration( |
|||
borderRadius: BorderRadius.circular(50.sp), |
|||
color: const Color(0xFF6334A9).withOpacity(0.5)), |
|||
child: IconButton( |
|||
icon: Image( |
|||
width: 30.sp, |
|||
height: 30.sp, |
|||
image: const AssetImage('lib/photos/285-min.png') |
|||
// : const AssetImage('lib/photos/banktransfert.png'), |
|||
), |
|||
onPressed: () {}, |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
), |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
import 'package:flutter_spinkit/flutter_spinkit.dart'; |
|||
|
|||
class LoadingDepot extends StatelessWidget { |
|||
final Color? spincouleur; |
|||
final Color? containcouleur; |
|||
final String titreLoadingDepot; |
|||
final String contenttext; |
|||
final double hauteurContainer; |
|||
final MainAxisAlignment alingementmainax; |
|||
const LoadingDepot( |
|||
{super.key, |
|||
required this.spincouleur, |
|||
required this.containcouleur, |
|||
this.titreLoadingDepot = "", |
|||
this.contenttext = "", |
|||
this.hauteurContainer = 450, |
|||
this.alingementmainax = MainAxisAlignment.start}); |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return Align( |
|||
alignment: Alignment.center, |
|||
child: Container( |
|||
height: hauteurContainer.h, |
|||
// color: Colors.amber, |
|||
color: containcouleur, |
|||
child: Column( |
|||
mainAxisAlignment: alingementmainax, |
|||
children: [ |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
titreLoadingDepot.toString(), |
|||
style: TextStyle( |
|||
fontSize: 20.sp, |
|||
fontWeight: FontWeight.bold, |
|||
color: Colors.black, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
Text( |
|||
textAlign: TextAlign.center, |
|||
contenttext.toString(), |
|||
style: TextStyle( |
|||
fontSize: 15.sp, |
|||
fontWeight: FontWeight.normal, |
|||
color: Colors.black, |
|||
fontFamily: 'PlusJakartaSans', |
|||
), |
|||
), |
|||
SpinKitChasingDots( |
|||
color: spincouleur, |
|||
size: 50, |
|||
), |
|||
], |
|||
), |
|||
), |
|||
); |
|||
} |
|||
} |
|||
@ -0,0 +1,27 @@ |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_spinkit/flutter_spinkit.dart'; |
|||
|
|||
class LoadingLisview extends StatefulWidget { |
|||
const LoadingLisview({super.key}); |
|||
|
|||
@override |
|||
State<LoadingLisview> createState() => _LoadingLisviewState(); |
|||
} |
|||
|
|||
class _LoadingLisviewState extends State<LoadingLisview> { |
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return const Scaffold( |
|||
body: Center( |
|||
child: SizedBox( |
|||
// color: Colors.amber, |
|||
height: 10, |
|||
width: 100, |
|||
child: Center( |
|||
child: SpinKitThreeBounce(color: Color(0xFF6334A9)), |
|||
), |
|||
), |
|||
), |
|||
); |
|||
} |
|||
} |
|||