├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcworkspace │ └── contents.xcworkspacedata ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj └── .gitignore ├── .vscode └── settings.json ├── screenshots ├── 1.png ├── 2.png ├── 3.png ├── 4.png └── google-play-badge.png ├── fonts ├── poppins │ ├── Poppins-Bold.ttf │ ├── Poppins-Black.ttf │ ├── Poppins-Medium.ttf │ └── Poppins-Regular.ttf └── Quicksand │ ├── Quicksand-Bold.ttf │ ├── Quicksand-Light.ttf │ ├── Quicksand-Medium.ttf │ ├── Quicksand-Regular.ttf │ └── Quicksand-SemiBold.ttf ├── android ├── .gitignore ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── drawable │ │ │ │ │ └── launch_background.xml │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── lib ├── utils │ ├── enums.dart │ ├── color_schemes.dart │ ├── helpers.dart │ └── textStyles.dart ├── widgets │ ├── tile.dart │ ├── result_tile.dart │ ├── my_drop_down_menu.dart │ ├── slider.dart │ └── my_button.dart ├── controllers │ ├── theme_controller.dart │ └── data_controller.dart ├── main.dart ├── data │ └── calculator.dart └── pages │ ├── results_page.dart │ └── home_page.dart ├── .metadata ├── pubspec.yaml ├── README.md ├── .gitignore ├── test └── widget_test.dart └── pubspec.lock /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "cSpell.words": [ 3 | "tdee" 4 | ] 5 | } -------------------------------------------------------------------------------- /screenshots/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/screenshots/1.png -------------------------------------------------------------------------------- /screenshots/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/screenshots/2.png -------------------------------------------------------------------------------- /screenshots/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/screenshots/3.png -------------------------------------------------------------------------------- /screenshots/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/screenshots/4.png -------------------------------------------------------------------------------- /fonts/poppins/Poppins-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/fonts/poppins/Poppins-Bold.ttf -------------------------------------------------------------------------------- /fonts/poppins/Poppins-Black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/fonts/poppins/Poppins-Black.ttf -------------------------------------------------------------------------------- /fonts/poppins/Poppins-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/fonts/poppins/Poppins-Medium.ttf -------------------------------------------------------------------------------- /fonts/Quicksand/Quicksand-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/fonts/Quicksand/Quicksand-Bold.ttf -------------------------------------------------------------------------------- /fonts/Quicksand/Quicksand-Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/fonts/Quicksand/Quicksand-Light.ttf -------------------------------------------------------------------------------- /fonts/poppins/Poppins-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/fonts/poppins/Poppins-Regular.ttf -------------------------------------------------------------------------------- /screenshots/google-play-badge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/screenshots/google-play-badge.png -------------------------------------------------------------------------------- /fonts/Quicksand/Quicksand-Medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/fonts/Quicksand/Quicksand-Medium.ttf -------------------------------------------------------------------------------- /fonts/Quicksand/Quicksand-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/fonts/Quicksand/Quicksand-Regular.ttf -------------------------------------------------------------------------------- /fonts/Quicksand/Quicksand-SemiBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/fonts/Quicksand/Quicksand-SemiBold.ttf -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | android.bundle.enableUncompressedNativeLibs=false 6 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/varadgauthankar/macro_calculator/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /lib/utils/enums.dart: -------------------------------------------------------------------------------- 1 | enum Gender { 2 | male, 3 | female, 4 | } 5 | 6 | enum ActivityLevel { 7 | sedentary, 8 | lightly, 9 | moderately, 10 | very, 11 | extremely, 12 | } 13 | 14 | enum Goal { 15 | loose, 16 | maintain, 17 | gain, 18 | } 19 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip 7 | -------------------------------------------------------------------------------- /lib/utils/color_schemes.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | final lightColorScheme = ColorScheme.fromSeed( 4 | seedColor: Color(0xff6750a4), 5 | brightness: Brightness.light, 6 | ); 7 | 8 | final darkColorScheme = ColorScheme.fromSeed( 9 | seedColor: Color(0xff6750a4), 10 | brightness: Brightness.dark, 11 | ); 12 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 0b8abb4724aa590dd0f429683339b1e045a1594d 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: macro_calculator 2 | description: A new Flutter project. 3 | version: 4.0.0+8 4 | 5 | environment: 6 | sdk: ">=2.15.1 <3.0.0" 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | cupertino_icons: ^1.0.5 12 | eva_icons_flutter: ^3.1.0 13 | hive: ^2.2.3 14 | hive_flutter: ^1.1.0 15 | numberpicker: ^2.1.1 16 | path_provider: ^2.0.11 17 | provider: ^6.0.3 18 | screenshot: ^1.2.3 19 | share_plus: ^4.0.10 20 | 21 | dev_dependencies: 22 | flutter_lints: ^1.0.0 23 | flutter_test: 24 | sdk: flutter 25 | 26 | flutter: 27 | uses-material-design: true 28 | -------------------------------------------------------------------------------- /lib/widgets/tile.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Tile extends StatelessWidget { 4 | final Widget child; 5 | const Tile({Key? key, required this.child}) : super(key: key); 6 | 7 | @override 8 | Widget build(BuildContext context) { 9 | return Container( 10 | margin: EdgeInsets.all(6.0), 11 | child: Material( 12 | borderRadius: BorderRadius.circular(12.0), 13 | color: Theme.of(context).colorScheme.surfaceVariant, 14 | elevation: 3, 15 | child: Padding( 16 | padding: const EdgeInsets.all(12.0), 17 | child: child, 18 | ), 19 | ), 20 | ); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /lib/controllers/theme_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:hive_flutter/hive_flutter.dart'; 3 | 4 | class ThemeController extends ChangeNotifier { 5 | ThemeMode _themeMode = ThemeMode.system; 6 | ThemeMode get themeMode => _themeMode; 7 | Box box = Hive.box('theme'); 8 | 9 | ThemeController() { 10 | _themeMode = ThemeMode.values[box.get('themeMode') ?? 1]; 11 | } 12 | 13 | void toggleTheme() { 14 | if (_themeMode == ThemeMode.dark) 15 | _themeMode = ThemeMode.light; 16 | else 17 | _themeMode = ThemeMode.dark; 18 | box.put('themeMode', _themeMode.index); 19 | notifyListeners(); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.7.0' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /lib/utils/helpers.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | Color getOverLayColor(BuildContext context, Color color) { 4 | return Color.alphaBlend(ElevationOverlay.overlayColor(context, 1), color); 5 | } 6 | 7 | Widget spacer({double height = 0, double width = 0}) { 8 | return SizedBox(height: height, width: width); 9 | } 10 | 11 | bool isThemeDark(BuildContext context) { 12 | return Theme.of(context).brightness == Brightness.dark ? true : false; 13 | } 14 | 15 | ColorScheme colorScheme(BuildContext context) { 16 | return Theme.of(context).colorScheme; 17 | } 18 | 19 | extension stringExtension on String { 20 | String firstCapital() { 21 | return "${this[0].toUpperCase()}${this.substring(1)}"; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Macro Calculator 2 | 3 | Macro calcualtor is a simple app that calculates the required macros and calculator based on height, weight, age and activity level. 4 | 5 | [Play Store](https://play.google.com/store/apps/details?id=com.varadgauthankar.macro_calculator) 6 | 7 | ## Screenshots 8 | 9 |

10 | macroCalculator 11 | macroCalculator 12 | macroCalculator 13 | macroCalculator

14 | 15 | ## License 16 | 17 | [MIT](https://choosealicense.com/licenses/mit/) 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | .dart_tool/ 26 | .flutter-plugins 27 | .flutter-plugins-dependencies 28 | .packages 29 | .pub-cache/ 30 | .pub/ 31 | /build/ 32 | 33 | # Web related 34 | lib/generated_plugin_registrant.dart 35 | 36 | # Exceptions to above rules. 37 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 38 | android/key.properties 39 | key.jks 40 | -------------------------------------------------------------------------------- /lib/widgets/result_tile.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'package:macro_calculator/utils/textStyles.dart'; 4 | import 'package:macro_calculator/widgets/tile.dart'; 5 | 6 | class ResultTile extends StatelessWidget { 7 | const ResultTile({ 8 | Key? key, 9 | required this.title, 10 | required this.value, 11 | required this.units, 12 | }) : super(key: key); 13 | 14 | final String title; 15 | final String value; 16 | final String units; 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return Tile( 21 | child: Column( 22 | children: [ 23 | Text(value, style: MyTextStyles(context).resultCardValue), 24 | Text(units, style: MyTextStyles(context).resultCardUnit), 25 | Text(title, style: MyTextStyles(context).resultCardText), 26 | ], 27 | ), 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:macro_calculator/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /lib/utils/textStyles.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class MyTextStyles { 4 | final BuildContext context; 5 | MyTextStyles(this.context); 6 | 7 | TextStyle get cardTitle => TextStyle( 8 | fontSize: 20, 9 | fontWeight: FontWeight.bold, 10 | color: Theme.of(context).colorScheme.onSurfaceVariant, 11 | ); 12 | 13 | TextStyle get homeCardValue => TextStyle( 14 | fontSize: 20, 15 | fontWeight: FontWeight.bold, 16 | color: Theme.of(context).colorScheme.primary, 17 | ); 18 | 19 | TextStyle get homeCardText => TextStyle( 20 | fontSize: 18, 21 | color: Theme.of(context).colorScheme.onSurfaceVariant, 22 | ); 23 | 24 | TextStyle get resultCardValue => TextStyle( 25 | fontSize: 28, 26 | fontWeight: FontWeight.bold, 27 | color: Theme.of(context).colorScheme.primary, 28 | ); 29 | 30 | TextStyle get resultCardText => TextStyle( 31 | fontSize: 16, 32 | fontWeight: FontWeight.bold, 33 | color: Theme.of(context).colorScheme.tertiary, 34 | ); 35 | 36 | TextStyle get resultCardUnit => TextStyle( 37 | fontSize: 12, 38 | fontWeight: FontWeight.w500, 39 | color: Theme.of(context).colorScheme.secondary, 40 | ); 41 | } 42 | -------------------------------------------------------------------------------- /lib/widgets/my_drop_down_menu.dart: -------------------------------------------------------------------------------- 1 | import 'package:eva_icons_flutter/eva_icons_flutter.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:macro_calculator/utils/enums.dart'; 4 | import 'package:macro_calculator/utils/helpers.dart'; 5 | 6 | class MyDropDownMenu extends StatelessWidget { 7 | final T value; 8 | final List items; 9 | final Function(T?) onChanged; 10 | const MyDropDownMenu({ 11 | Key? key, 12 | required this.value, 13 | required this.items, 14 | required this.onChanged, 15 | }) : super(key: key); 16 | 17 | String _getText(T value) { 18 | return value.toString().split('.').last.firstCapital(); 19 | } 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return Padding( 24 | padding: const EdgeInsets.only(left: 12.0), 25 | child: DropdownButton( 26 | borderRadius: BorderRadius.circular(12), 27 | value: value, 28 | icon: Icon(EvaIcons.chevronDown), 29 | elevation: 3, 30 | underline: Container( 31 | height: 3, 32 | color: Theme.of(context).colorScheme.primary, 33 | ), 34 | onChanged: onChanged, 35 | items: items.map>((T value) { 36 | return DropdownMenuItem( 37 | value: value, 38 | child: Text( 39 | T == ActivityLevel 40 | ? _getText(value) + ' active' 41 | : _getText(value) + ' weight', 42 | ), 43 | ); 44 | }).toList(), 45 | ), 46 | ); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:hive_flutter/hive_flutter.dart'; 2 | import 'package:macro_calculator/controllers/data_controller.dart'; 3 | import 'package:macro_calculator/controllers/theme_controller.dart'; 4 | import 'package:macro_calculator/pages/home_page.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:macro_calculator/utils/color_schemes.dart'; 7 | import 'package:provider/provider.dart'; 8 | 9 | void main() async { 10 | await Hive.initFlutter(); 11 | await Hive.openBox('data'); 12 | await Hive.openBox('theme'); 13 | runApp(MyApp()); 14 | } 15 | 16 | class MyApp extends StatelessWidget { 17 | @override 18 | Widget build(BuildContext context) { 19 | return MultiProvider( 20 | providers: [ 21 | ChangeNotifierProvider(create: (_) => DataController()), 22 | ChangeNotifierProvider(create: (_) => ThemeController()), 23 | ], 24 | child: Consumer( 25 | builder: (context, theme, child) { 26 | return MaterialApp( 27 | debugShowCheckedModeBanner: false, 28 | title: 'Macro Calculator', 29 | home: HomePage(), 30 | theme: ThemeData( 31 | scaffoldBackgroundColor: lightColorScheme.background, 32 | useMaterial3: true, 33 | colorScheme: lightColorScheme, 34 | ), 35 | darkTheme: ThemeData( 36 | scaffoldBackgroundColor: darkColorScheme.background, 37 | useMaterial3: true, 38 | colorScheme: darkColorScheme, 39 | ), 40 | themeMode: theme.themeMode, 41 | ); 42 | }, 43 | ), 44 | ); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 9 | 13 | 20 | 21 | 22 | 23 | 24 | 25 | 27 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/controllers/data_controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:hive_flutter/hive_flutter.dart'; 3 | import 'package:macro_calculator/utils/enums.dart'; 4 | 5 | class DataController extends ChangeNotifier { 6 | Gender? gender; 7 | double? height; 8 | double? weight; 9 | int? age; 10 | 11 | ActivityLevel? activityLevel; 12 | Goal? goal; 13 | 14 | Box box = Hive.box('data'); 15 | 16 | DataController() { 17 | this.gender = Gender.values[box.get('gender') ?? 0]; 18 | this.height = box.get('height') ?? 170; 19 | this.weight = box.get('weight') ?? 70; 20 | this.age = box.get('age') ?? 25; 21 | this.activityLevel = ActivityLevel.values[box.get('activityLevel') ?? 2]; 22 | this.goal = Goal.values[box.get('goal') ?? 0]; 23 | } 24 | 25 | void setGender(Gender? gender) async { 26 | this.gender = gender; 27 | box.put('gender', gender?.index); 28 | notifyListeners(); 29 | } 30 | 31 | void setHeight(double? height) { 32 | this.height = height; 33 | box.put('height', height); 34 | notifyListeners(); 35 | } 36 | 37 | void setWeight(double? weight) { 38 | this.weight = weight; 39 | box.put('weight', weight); 40 | notifyListeners(); 41 | } 42 | 43 | void setAge(int? age) { 44 | this.age = age; 45 | box.put('age', age); 46 | notifyListeners(); 47 | } 48 | 49 | void setActivityLevel(ActivityLevel? activityLevel) { 50 | this.activityLevel = activityLevel; 51 | box.put('activityLevel', activityLevel?.index); 52 | notifyListeners(); 53 | } 54 | 55 | void setGoal(Goal? goal) { 56 | this.goal = goal; 57 | box.put('goal', goal?.index); 58 | 59 | notifyListeners(); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | macro_calculator 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /lib/widgets/slider.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class MyCustomSlider extends StatelessWidget { 4 | final double minValue; 5 | final double maxValue; 6 | final double value; 7 | final Function(double) onChanged; 8 | const MyCustomSlider({ 9 | Key? key, 10 | required this.minValue, 11 | required this.maxValue, 12 | required this.value, 13 | required this.onChanged, 14 | }) : super(key: key); 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return SliderTheme( 19 | data: SliderTheme.of(context).copyWith( 20 | trackShape: CustomTrackShape(), 21 | trackHeight: 6.0, 22 | // thumbColor: Theme.of(context).colorScheme.secondary, 23 | // activeTrackColor: Theme.of(context).colorScheme.secondary, 24 | // inactiveTrackColor: Theme.of(context).colorScheme.onSurfaceVariant, 25 | thumbShape: RoundSliderThumbShape(enabledThumbRadius: 10.0), 26 | // overlayColor: Colors.red.withAlpha(32), 27 | ), 28 | child: Slider( 29 | min: minValue, 30 | max: maxValue, 31 | value: value, 32 | onChanged: onChanged, 33 | ), 34 | ); 35 | } 36 | } 37 | 38 | class CustomTrackShape extends RoundedRectSliderTrackShape { 39 | Rect getPreferredRect({ 40 | required RenderBox parentBox, 41 | Offset offset = Offset.zero, 42 | required SliderThemeData sliderTheme, 43 | bool isEnabled = false, 44 | bool isDiscrete = false, 45 | }) { 46 | final double trackHeight = sliderTheme.trackHeight!; 47 | final double trackLeft = offset.dx; 48 | final double trackTop = 49 | offset.dy + (parentBox.size.height - trackHeight) / 2; 50 | final double trackWidth = parentBox.size.width; 51 | return Rect.fromLTWH(trackLeft, trackTop, trackWidth, trackHeight); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/widgets/my_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:macro_calculator/utils/helpers.dart'; 3 | 4 | class MyButton extends StatelessWidget { 5 | final Function() onTap; 6 | final String title; 7 | final bool selected; 8 | final IconData icon; 9 | const MyButton({ 10 | Key? key, 11 | required this.icon, 12 | required this.onTap, 13 | required this.title, 14 | this.selected = false, 15 | }) : super(key: key); 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return Container( 20 | child: Material( 21 | borderRadius: BorderRadius.circular(8.0), 22 | color: selected 23 | ? colorScheme(context).primary 24 | : colorScheme(context).secondary, 25 | elevation: 3, 26 | child: InkWell( 27 | borderRadius: BorderRadius.circular(8.0), 28 | onTap: onTap, 29 | child: Center( 30 | child: Padding( 31 | padding: const EdgeInsets.all(12.0), 32 | child: Row( 33 | mainAxisAlignment: MainAxisAlignment.center, 34 | children: [ 35 | Icon( 36 | icon, 37 | color: selected 38 | ? colorScheme(context).onPrimary 39 | : colorScheme(context).onSecondary, 40 | ), 41 | spacer(width: 6), 42 | Text( 43 | title, 44 | style: Theme.of(context).textTheme.labelLarge?.copyWith( 45 | color: selected 46 | ? colorScheme(context).onPrimary 47 | : colorScheme(context).onSecondary, 48 | ), 49 | ), 50 | ], 51 | ), 52 | ), 53 | ), 54 | ), 55 | ), 56 | ); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | def keystoreProperties = new Properties() 29 | def keystorePropertiesFile = rootProject.file('key.properties') 30 | if (keystorePropertiesFile.exists()) { 31 | keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) 32 | } 33 | 34 | 35 | android { 36 | compileSdkVersion 31 37 | 38 | sourceSets { 39 | main.java.srcDirs += 'src/main/kotlin' 40 | } 41 | 42 | lintOptions { 43 | disable 'InvalidPackage' 44 | } 45 | 46 | defaultConfig { 47 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 48 | applicationId "com.varadgauthankar.macro_calculator" 49 | minSdkVersion 16 50 | targetSdkVersion 30 51 | versionCode flutterVersionCode.toInteger() 52 | versionName flutterVersionName 53 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 54 | } 55 | 56 | signingConfigs { 57 | release { 58 | keyAlias keystoreProperties['keyAlias'] 59 | keyPassword keystoreProperties['keyPassword'] 60 | storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null 61 | storePassword keystoreProperties['storePassword'] 62 | } 63 | } 64 | 65 | buildTypes { 66 | release { 67 | // TODO: Add your own signing config for the release build. 68 | // Signing with the debug keys for now, so `flutter run --release` works. 69 | signingConfig signingConfigs.release 70 | } 71 | } 72 | } 73 | 74 | flutter { 75 | source '../..' 76 | } 77 | 78 | dependencies { 79 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 80 | testImplementation 'junit:junit:4.12' 81 | androidTestImplementation 'androidx.test:runner:1.1.1' 82 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 83 | } 84 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /lib/data/calculator.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:macro_calculator/utils/enums.dart'; 4 | 5 | class Calculator { 6 | final double weight; 7 | final double height; 8 | final int age; 9 | final ActivityLevel activityLevel; 10 | final Goal goal; 11 | final Gender gender; 12 | 13 | Calculator({ 14 | required this.activityLevel, 15 | required this.goal, 16 | required this.gender, 17 | required this.weight, 18 | required this.height, 19 | required this.age, 20 | }); 21 | 22 | double bmi() { 23 | return (weight / pow(height / 100, 2)); 24 | } 25 | 26 | String bmiScale() { 27 | if (bmi() < 18.5) 28 | return 'UNDERWEIGHT'; 29 | else if (bmi() >= 18.5 && bmi() <= 24.9) 30 | return 'NORMAL'; 31 | else if (bmi() >= 25 && bmi() <= 29.9) 32 | return 'OVERWEIGHT'; 33 | else if (bmi() >= 30 && bmi() <= 34.9) 34 | return 'OBESE'; 35 | else if (bmi() >= 35) 36 | return 'EXTREMLY OBESE'; 37 | else 38 | return 'BMI'; 39 | } 40 | 41 | double bmr() { 42 | if (gender == Gender.male) { 43 | return 10 * weight + 6.25 * height - 5 * age + 5; 44 | } else { 45 | return 10 * weight + 6.25 * height - 5 * age - 161; 46 | } 47 | } 48 | 49 | double tdee() { 50 | if (activityLevel == ActivityLevel.sedentary) 51 | return bmr() * 1.2; 52 | else if (activityLevel == ActivityLevel.lightly) 53 | return bmr() * 1.375; 54 | else if (activityLevel == ActivityLevel.moderately) 55 | return bmr() * 1.55; 56 | else if (activityLevel == ActivityLevel.very) 57 | return bmr() * 1.725; 58 | else if (activityLevel == ActivityLevel.extremely) 59 | return bmr() * 1.9; 60 | else 61 | return 0; 62 | } 63 | 64 | double totalCalories() { 65 | if (goal == Goal.loose) { 66 | return (tdee() - 500); 67 | } else if (goal == Goal.maintain) { 68 | return tdee(); 69 | } else if (goal == Goal.gain) { 70 | return tdee() + 400; 71 | } else 72 | return 0; 73 | } 74 | 75 | //protein 76 | double protein() { 77 | if (goal == Goal.loose) { 78 | return ((1.1 * (weight * 2.2)) * 4) / 4; 79 | } else if (goal == Goal.maintain) { 80 | return ((weight * 2.2) * 4) / 4; 81 | } else if (goal == Goal.gain) { 82 | return ((0.9 * (weight * 2.2)) * 4) / 4; 83 | } 84 | return 0; 85 | } 86 | 87 | //fats 88 | double fat() { 89 | if (goal == Goal.loose) { 90 | return (0.20 * totalCalories()) / 9; 91 | } else if (goal == Goal.maintain) { 92 | return (0.20 * totalCalories()) / 9; 93 | } else if (goal == Goal.gain) { 94 | return (0.25 * totalCalories()) / 9; 95 | } 96 | return 0; 97 | } 98 | 99 | //carbs 100 | //I succ at maths lol 101 | double carb() { 102 | if (goal == Goal.loose) { 103 | return (totalCalories() - (fat() * 9 + protein() * 4)) / 4; 104 | } else if (goal == Goal.maintain) { 105 | return (totalCalories() - (protein() * 4 + fat() * 9)) / 4; 106 | } else if (goal == Goal.gain) { 107 | return (totalCalories() - (fat() * 9 + protein() * 4)) / 4; 108 | } 109 | return 0; 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/pages/results_page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'package:eva_icons_flutter/eva_icons_flutter.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:macro_calculator/widgets/result_tile.dart'; 5 | import 'package:path_provider/path_provider.dart'; 6 | import 'package:screenshot/screenshot.dart'; 7 | import 'package:share_plus/share_plus.dart'; 8 | 9 | class ResultPage extends StatelessWidget { 10 | ResultPage({ 11 | required this.totalCalories, 12 | required this.carbs, 13 | required this.protein, 14 | required this.fats, 15 | required this.bmi, 16 | required this.tdee, 17 | required this.bmiScale, 18 | }); 19 | 20 | final double totalCalories; 21 | final double carbs; 22 | final double protein; 23 | final double fats; 24 | final double bmi; 25 | final double tdee; 26 | final String bmiScale; 27 | 28 | @override 29 | Widget build(BuildContext context) { 30 | ScreenshotController screenshotController = ScreenshotController(); 31 | return Scaffold( 32 | appBar: AppBar( 33 | title: Text("Results"), 34 | leading: IconButton( 35 | icon: Icon(EvaIcons.chevronLeft), 36 | onPressed: () => Navigator.pop(context), 37 | ), 38 | ), 39 | body: Container( 40 | child: ListView( 41 | padding: EdgeInsets.all(6.0), 42 | children: [ 43 | Screenshot( 44 | controller: screenshotController, 45 | child: Column( 46 | mainAxisAlignment: MainAxisAlignment.center, 47 | crossAxisAlignment: CrossAxisAlignment.stretch, 48 | children: [ 49 | ResultTile( 50 | title: "Total Calories", 51 | value: "${totalCalories.toStringAsFixed(0)}", 52 | units: "KCALS", 53 | ), 54 | ResultTile( 55 | title: "Carbs", 56 | value: "${carbs.toStringAsFixed(0)}", 57 | units: "GRAMS", 58 | ), 59 | Row( 60 | children: [ 61 | Expanded( 62 | child: ResultTile( 63 | title: "Protein", 64 | value: "${protein.toStringAsFixed(0)}", 65 | units: "GRAMS", 66 | ), 67 | ), 68 | Expanded( 69 | child: ResultTile( 70 | title: "Fats", 71 | value: "${fats.toStringAsFixed(0)}", 72 | units: "GRAMS", 73 | ), 74 | ), 75 | ], 76 | ), 77 | Row( 78 | children: [ 79 | Expanded( 80 | child: ResultTile( 81 | title: "BMI", 82 | value: "${bmi.toStringAsFixed(1)}", 83 | units: bmiScale, 84 | ), 85 | ), 86 | Expanded( 87 | child: ResultTile( 88 | title: "TDEE", 89 | value: "${tdee.toStringAsFixed(0)}", 90 | units: "KCALS", 91 | ), 92 | ), 93 | ], 94 | ), 95 | ], 96 | ), 97 | ), 98 | ], 99 | ), 100 | ), 101 | floatingActionButton: FloatingActionButton( 102 | heroTag: 'fab', 103 | tooltip: 'share', 104 | child: Icon(Icons.share_rounded), 105 | onPressed: () => shareScreenshot(screenshotController), 106 | ), 107 | ); 108 | } 109 | 110 | void shareScreenshot(ScreenshotController key) async { 111 | var unit8List = await key.capture(); 112 | String tempPath = (await getTemporaryDirectory()).path; 113 | File file = File('$tempPath/img.png'); 114 | await file.writeAsBytes(unit8List!); 115 | await Share.shareFiles( 116 | [file.path], 117 | text: 'Calculated from Macro Calculator.\n' + 118 | 'download now: https://play.google.com/store/apps/details?id=com.varadgauthankar.macro_calculator', 119 | ); 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /lib/pages/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:eva_icons_flutter/eva_icons_flutter.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:macro_calculator/controllers/data_controller.dart'; 4 | import 'package:macro_calculator/controllers/theme_controller.dart'; 5 | import 'package:macro_calculator/pages/results_page.dart'; 6 | import 'package:macro_calculator/utils/enums.dart'; 7 | import 'package:macro_calculator/utils/helpers.dart'; 8 | import 'package:macro_calculator/utils/textStyles.dart'; 9 | import 'package:macro_calculator/data/calculator.dart'; 10 | import 'package:macro_calculator/widgets/my_button.dart'; 11 | import 'package:macro_calculator/widgets/my_drop_down_menu.dart'; 12 | import 'package:macro_calculator/widgets/slider.dart'; 13 | import 'package:macro_calculator/widgets/tile.dart'; 14 | import 'package:numberpicker/numberpicker.dart'; 15 | import 'package:provider/provider.dart'; 16 | 17 | class HomePage extends StatefulWidget { 18 | @override 19 | _HomePageState createState() => _HomePageState(); 20 | } 21 | 22 | class _HomePageState extends State { 23 | @override 24 | void initState() { 25 | super.initState(); 26 | } 27 | 28 | @override 29 | Widget build(BuildContext context) { 30 | var dataController = Provider.of(context); 31 | 32 | return Scaffold( 33 | appBar: AppBar( 34 | title: Text("Macro Calculator"), 35 | actions: [ 36 | IconButton( 37 | tooltip: isThemeDark(context) ? 'Light Mode' : 'Dark Mode', 38 | icon: Icon( 39 | isThemeDark(context) ? EvaIcons.sunOutline : EvaIcons.moonOutline, 40 | ), 41 | onPressed: () => 42 | Provider.of(context, listen: false) 43 | .toggleTheme(), 44 | ) 45 | ], 46 | ), 47 | body: ListView( 48 | padding: EdgeInsets.all(6.0), 49 | children: [ 50 | Tile( 51 | child: Column( 52 | crossAxisAlignment: CrossAxisAlignment.start, 53 | children: [ 54 | Row( 55 | children: [ 56 | Expanded( 57 | child: MyButton( 58 | icon: Icons.male, 59 | title: 'Male', 60 | selected: dataController.gender == Gender.male, 61 | onTap: () => dataController.setGender(Gender.male), 62 | ), 63 | ), 64 | spacer(width: 12), 65 | Expanded( 66 | child: MyButton( 67 | icon: Icons.female, 68 | title: 'Female', 69 | selected: dataController.gender == Gender.female, 70 | onTap: () => dataController.setGender(Gender.female), 71 | ), 72 | ), 73 | ], 74 | ), 75 | 76 | spacer(height: 12), 77 | 78 | //! height slider 79 | Row( 80 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 81 | children: [ 82 | Text( 83 | "Height", 84 | style: MyTextStyles(context).cardTitle, 85 | ), 86 | Row( 87 | children: [ 88 | Text( 89 | "${dataController.height!.toStringAsFixed(0)}", 90 | style: MyTextStyles(context).homeCardValue, 91 | ), 92 | Text( 93 | "cm", 94 | style: MyTextStyles(context).homeCardText, 95 | ), 96 | ], 97 | ), 98 | ], 99 | ), 100 | MyCustomSlider( 101 | value: dataController.height!, 102 | minValue: 100, 103 | maxValue: 220, 104 | onChanged: (value) => dataController.setHeight(value), 105 | ), 106 | 107 | //! weight slider 108 | Row( 109 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 110 | children: [ 111 | Text( 112 | "Weight", 113 | style: MyTextStyles(context).cardTitle, 114 | ), 115 | Row( 116 | children: [ 117 | Text( 118 | "${dataController.weight!.toStringAsFixed(0)}", 119 | style: MyTextStyles(context).homeCardValue, 120 | ), 121 | Text( 122 | "kg", 123 | style: MyTextStyles(context).homeCardText, 124 | ), 125 | ], 126 | ), 127 | ], 128 | ), 129 | MyCustomSlider( 130 | value: dataController.weight!, 131 | minValue: 40, 132 | maxValue: 150, 133 | onChanged: (value) => dataController.setWeight(value), 134 | ), 135 | // age number picker 136 | Text( 137 | "Age", 138 | style: MyTextStyles(context).cardTitle, 139 | ), 140 | Center( 141 | child: NumberPicker( 142 | minValue: 12, 143 | maxValue: 80, 144 | itemCount: 7, 145 | itemWidth: 47.2, 146 | selectedTextStyle: TextStyle( 147 | color: Theme.of(context).colorScheme.primary, 148 | fontSize: 30, 149 | fontWeight: FontWeight.bold, 150 | ), 151 | textStyle: TextStyle(color: colorScheme(context).tertiary), 152 | value: dataController.age!, 153 | axis: Axis.horizontal, 154 | onChanged: (value) => dataController.setAge(value), 155 | ), 156 | ) 157 | ], 158 | ), 159 | ), 160 | 161 | //! second container 162 | Tile( 163 | child: Column( 164 | crossAxisAlignment: CrossAxisAlignment.start, 165 | children: [ 166 | Text( 167 | "Activity level", 168 | style: MyTextStyles(context).cardTitle, 169 | ), 170 | MyDropDownMenu( 171 | items: ActivityLevel.values, 172 | value: dataController.activityLevel!, 173 | onChanged: (value) => dataController.setActivityLevel(value), 174 | ), 175 | SizedBox(height: 8), 176 | Text( 177 | "Goal", 178 | style: MyTextStyles(context).cardTitle, 179 | ), 180 | MyDropDownMenu( 181 | items: Goal.values, 182 | value: dataController.goal!, 183 | onChanged: (value) => dataController.setGoal(value), 184 | ), 185 | ], 186 | ), 187 | ), 188 | ], 189 | ), 190 | floatingActionButtonLocation: FloatingActionButtonLocation.endFloat, 191 | floatingActionButton: FloatingActionButton.extended( 192 | tooltip: 'Calculate', 193 | heroTag: 'fab', 194 | icon: Icon(Icons.done), 195 | label: Text('Calculate'), 196 | onPressed: () { 197 | Calculator calculator = Calculator( 198 | gender: dataController.gender!, 199 | height: dataController.height!, 200 | weight: dataController.weight!, 201 | age: dataController.age!, 202 | activityLevel: dataController.activityLevel!, 203 | goal: dataController.goal!, 204 | ); 205 | 206 | Navigator.push( 207 | context, 208 | MaterialPageRoute( 209 | builder: (context) => ResultPage( 210 | totalCalories: calculator.totalCalories(), 211 | carbs: calculator.carb(), 212 | protein: calculator.protein(), 213 | fats: calculator.fat(), 214 | bmi: calculator.bmi(), 215 | tdee: calculator.tdee(), 216 | bmiScale: calculator.bmiScale(), 217 | ), 218 | ), 219 | ); 220 | }, 221 | ), 222 | ); 223 | } 224 | } 225 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.8.2" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.1.0" 18 | characters: 19 | dependency: transitive 20 | description: 21 | name: characters 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.2.0" 25 | charcode: 26 | dependency: transitive 27 | description: 28 | name: charcode 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.3.1" 32 | clock: 33 | dependency: transitive 34 | description: 35 | name: clock 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.0" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.16.0" 46 | crypto: 47 | dependency: transitive 48 | description: 49 | name: crypto 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "3.0.2" 53 | cupertino_icons: 54 | dependency: "direct main" 55 | description: 56 | name: cupertino_icons 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.0.5" 60 | eva_icons_flutter: 61 | dependency: "direct main" 62 | description: 63 | name: eva_icons_flutter 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "3.1.0" 67 | fake_async: 68 | dependency: transitive 69 | description: 70 | name: fake_async 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "1.3.0" 74 | ffi: 75 | dependency: transitive 76 | description: 77 | name: ffi 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "2.0.1" 81 | file: 82 | dependency: transitive 83 | description: 84 | name: file 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "6.1.2" 88 | flutter: 89 | dependency: "direct main" 90 | description: flutter 91 | source: sdk 92 | version: "0.0.0" 93 | flutter_lints: 94 | dependency: "direct dev" 95 | description: 96 | name: flutter_lints 97 | url: "https://pub.dartlang.org" 98 | source: hosted 99 | version: "1.0.4" 100 | flutter_test: 101 | dependency: "direct dev" 102 | description: flutter 103 | source: sdk 104 | version: "0.0.0" 105 | flutter_web_plugins: 106 | dependency: transitive 107 | description: flutter 108 | source: sdk 109 | version: "0.0.0" 110 | hive: 111 | dependency: "direct main" 112 | description: 113 | name: hive 114 | url: "https://pub.dartlang.org" 115 | source: hosted 116 | version: "2.2.3" 117 | hive_flutter: 118 | dependency: "direct main" 119 | description: 120 | name: hive_flutter 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "1.1.0" 124 | infinite_listview: 125 | dependency: transitive 126 | description: 127 | name: infinite_listview 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "1.1.0" 131 | js: 132 | dependency: transitive 133 | description: 134 | name: js 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "0.6.4" 138 | lints: 139 | dependency: transitive 140 | description: 141 | name: lints 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "1.0.1" 145 | matcher: 146 | dependency: transitive 147 | description: 148 | name: matcher 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "0.12.11" 152 | material_color_utilities: 153 | dependency: transitive 154 | description: 155 | name: material_color_utilities 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "0.1.4" 159 | meta: 160 | dependency: transitive 161 | description: 162 | name: meta 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "1.7.0" 166 | mime: 167 | dependency: transitive 168 | description: 169 | name: mime 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "1.0.2" 173 | nested: 174 | dependency: transitive 175 | description: 176 | name: nested 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "1.0.0" 180 | numberpicker: 181 | dependency: "direct main" 182 | description: 183 | name: numberpicker 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "2.1.1" 187 | path: 188 | dependency: transitive 189 | description: 190 | name: path 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "1.8.1" 194 | path_provider: 195 | dependency: "direct main" 196 | description: 197 | name: path_provider 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "2.0.11" 201 | path_provider_android: 202 | dependency: transitive 203 | description: 204 | name: path_provider_android 205 | url: "https://pub.dartlang.org" 206 | source: hosted 207 | version: "2.0.16" 208 | path_provider_ios: 209 | dependency: transitive 210 | description: 211 | name: path_provider_ios 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "2.0.10" 215 | path_provider_linux: 216 | dependency: transitive 217 | description: 218 | name: path_provider_linux 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "2.1.7" 222 | path_provider_macos: 223 | dependency: transitive 224 | description: 225 | name: path_provider_macos 226 | url: "https://pub.dartlang.org" 227 | source: hosted 228 | version: "2.0.6" 229 | path_provider_platform_interface: 230 | dependency: transitive 231 | description: 232 | name: path_provider_platform_interface 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "2.0.4" 236 | path_provider_windows: 237 | dependency: transitive 238 | description: 239 | name: path_provider_windows 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "2.1.0" 243 | platform: 244 | dependency: transitive 245 | description: 246 | name: platform 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "3.1.0" 250 | plugin_platform_interface: 251 | dependency: transitive 252 | description: 253 | name: plugin_platform_interface 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "2.1.2" 257 | process: 258 | dependency: transitive 259 | description: 260 | name: process 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "4.2.4" 264 | provider: 265 | dependency: "direct main" 266 | description: 267 | name: provider 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "6.0.3" 271 | screenshot: 272 | dependency: "direct main" 273 | description: 274 | name: screenshot 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "1.2.3" 278 | share_plus: 279 | dependency: "direct main" 280 | description: 281 | name: share_plus 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "4.0.10" 285 | share_plus_linux: 286 | dependency: transitive 287 | description: 288 | name: share_plus_linux 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "3.0.0" 292 | share_plus_macos: 293 | dependency: transitive 294 | description: 295 | name: share_plus_macos 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "3.0.1" 299 | share_plus_platform_interface: 300 | dependency: transitive 301 | description: 302 | name: share_plus_platform_interface 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "3.0.3" 306 | share_plus_web: 307 | dependency: transitive 308 | description: 309 | name: share_plus_web 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "3.0.1" 313 | share_plus_windows: 314 | dependency: transitive 315 | description: 316 | name: share_plus_windows 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "3.0.1" 320 | sky_engine: 321 | dependency: transitive 322 | description: flutter 323 | source: sdk 324 | version: "0.0.99" 325 | source_span: 326 | dependency: transitive 327 | description: 328 | name: source_span 329 | url: "https://pub.dartlang.org" 330 | source: hosted 331 | version: "1.8.2" 332 | stack_trace: 333 | dependency: transitive 334 | description: 335 | name: stack_trace 336 | url: "https://pub.dartlang.org" 337 | source: hosted 338 | version: "1.10.0" 339 | stream_channel: 340 | dependency: transitive 341 | description: 342 | name: stream_channel 343 | url: "https://pub.dartlang.org" 344 | source: hosted 345 | version: "2.1.0" 346 | string_scanner: 347 | dependency: transitive 348 | description: 349 | name: string_scanner 350 | url: "https://pub.dartlang.org" 351 | source: hosted 352 | version: "1.1.0" 353 | term_glyph: 354 | dependency: transitive 355 | description: 356 | name: term_glyph 357 | url: "https://pub.dartlang.org" 358 | source: hosted 359 | version: "1.2.0" 360 | test_api: 361 | dependency: transitive 362 | description: 363 | name: test_api 364 | url: "https://pub.dartlang.org" 365 | source: hosted 366 | version: "0.4.9" 367 | typed_data: 368 | dependency: transitive 369 | description: 370 | name: typed_data 371 | url: "https://pub.dartlang.org" 372 | source: hosted 373 | version: "1.3.1" 374 | url_launcher: 375 | dependency: transitive 376 | description: 377 | name: url_launcher 378 | url: "https://pub.dartlang.org" 379 | source: hosted 380 | version: "6.1.4" 381 | url_launcher_android: 382 | dependency: transitive 383 | description: 384 | name: url_launcher_android 385 | url: "https://pub.dartlang.org" 386 | source: hosted 387 | version: "6.0.17" 388 | url_launcher_ios: 389 | dependency: transitive 390 | description: 391 | name: url_launcher_ios 392 | url: "https://pub.dartlang.org" 393 | source: hosted 394 | version: "6.0.17" 395 | url_launcher_linux: 396 | dependency: transitive 397 | description: 398 | name: url_launcher_linux 399 | url: "https://pub.dartlang.org" 400 | source: hosted 401 | version: "3.0.1" 402 | url_launcher_macos: 403 | dependency: transitive 404 | description: 405 | name: url_launcher_macos 406 | url: "https://pub.dartlang.org" 407 | source: hosted 408 | version: "3.0.1" 409 | url_launcher_platform_interface: 410 | dependency: transitive 411 | description: 412 | name: url_launcher_platform_interface 413 | url: "https://pub.dartlang.org" 414 | source: hosted 415 | version: "2.1.0" 416 | url_launcher_web: 417 | dependency: transitive 418 | description: 419 | name: url_launcher_web 420 | url: "https://pub.dartlang.org" 421 | source: hosted 422 | version: "2.0.12" 423 | url_launcher_windows: 424 | dependency: transitive 425 | description: 426 | name: url_launcher_windows 427 | url: "https://pub.dartlang.org" 428 | source: hosted 429 | version: "3.0.1" 430 | vector_math: 431 | dependency: transitive 432 | description: 433 | name: vector_math 434 | url: "https://pub.dartlang.org" 435 | source: hosted 436 | version: "2.1.2" 437 | win32: 438 | dependency: transitive 439 | description: 440 | name: win32 441 | url: "https://pub.dartlang.org" 442 | source: hosted 443 | version: "2.7.0" 444 | xdg_directories: 445 | dependency: transitive 446 | description: 447 | name: xdg_directories 448 | url: "https://pub.dartlang.org" 449 | source: hosted 450 | version: "0.2.0+1" 451 | sdks: 452 | dart: ">=2.17.0 <3.0.0" 453 | flutter: ">=3.0.0" 454 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 18 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 19 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXCopyFilesBuildPhase section */ 23 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 24 | isa = PBXCopyFilesBuildPhase; 25 | buildActionMask = 2147483647; 26 | dstPath = ""; 27 | dstSubfolderSpec = 10; 28 | files = ( 29 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 30 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 31 | ); 32 | name = "Embed Frameworks"; 33 | runOnlyForDeploymentPostprocessing = 0; 34 | }; 35 | /* End PBXCopyFilesBuildPhase section */ 36 | 37 | /* Begin PBXFileReference section */ 38 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 39 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 40 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 41 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 42 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 43 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 45 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 46 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 47 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 48 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 50 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 51 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 52 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 53 | /* End PBXFileReference section */ 54 | 55 | /* Begin PBXFrameworksBuildPhase section */ 56 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 57 | isa = PBXFrameworksBuildPhase; 58 | buildActionMask = 2147483647; 59 | files = ( 60 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 61 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | /* End PBXFrameworksBuildPhase section */ 66 | 67 | /* Begin PBXGroup section */ 68 | 9740EEB11CF90186004384FC /* Flutter */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | 3B80C3931E831B6300D905FE /* App.framework */, 72 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 73 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 74 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 75 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 76 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 77 | ); 78 | name = Flutter; 79 | sourceTree = ""; 80 | }; 81 | 97C146E51CF9000F007C117D = { 82 | isa = PBXGroup; 83 | children = ( 84 | 9740EEB11CF90186004384FC /* Flutter */, 85 | 97C146F01CF9000F007C117D /* Runner */, 86 | 97C146EF1CF9000F007C117D /* Products */, 87 | ); 88 | sourceTree = ""; 89 | }; 90 | 97C146EF1CF9000F007C117D /* Products */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | 97C146EE1CF9000F007C117D /* Runner.app */, 94 | ); 95 | name = Products; 96 | sourceTree = ""; 97 | }; 98 | 97C146F01CF9000F007C117D /* Runner */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 102 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 103 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 104 | 97C147021CF9000F007C117D /* Info.plist */, 105 | 97C146F11CF9000F007C117D /* Supporting Files */, 106 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 107 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 108 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 109 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 110 | ); 111 | path = Runner; 112 | sourceTree = ""; 113 | }; 114 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | ); 118 | name = "Supporting Files"; 119 | sourceTree = ""; 120 | }; 121 | /* End PBXGroup section */ 122 | 123 | /* Begin PBXNativeTarget section */ 124 | 97C146ED1CF9000F007C117D /* Runner */ = { 125 | isa = PBXNativeTarget; 126 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 127 | buildPhases = ( 128 | 9740EEB61CF901F6004384FC /* Run Script */, 129 | 97C146EA1CF9000F007C117D /* Sources */, 130 | 97C146EB1CF9000F007C117D /* Frameworks */, 131 | 97C146EC1CF9000F007C117D /* Resources */, 132 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 133 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 134 | ); 135 | buildRules = ( 136 | ); 137 | dependencies = ( 138 | ); 139 | name = Runner; 140 | productName = Runner; 141 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 142 | productType = "com.apple.product-type.application"; 143 | }; 144 | /* End PBXNativeTarget section */ 145 | 146 | /* Begin PBXProject section */ 147 | 97C146E61CF9000F007C117D /* Project object */ = { 148 | isa = PBXProject; 149 | attributes = { 150 | LastUpgradeCheck = 1020; 151 | ORGANIZATIONNAME = "The Chromium Authors"; 152 | TargetAttributes = { 153 | 97C146ED1CF9000F007C117D = { 154 | CreatedOnToolsVersion = 7.3.1; 155 | LastSwiftMigration = 1100; 156 | }; 157 | }; 158 | }; 159 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 160 | compatibilityVersion = "Xcode 3.2"; 161 | developmentRegion = en; 162 | hasScannedForEncodings = 0; 163 | knownRegions = ( 164 | en, 165 | Base, 166 | ); 167 | mainGroup = 97C146E51CF9000F007C117D; 168 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 169 | projectDirPath = ""; 170 | projectRoot = ""; 171 | targets = ( 172 | 97C146ED1CF9000F007C117D /* Runner */, 173 | ); 174 | }; 175 | /* End PBXProject section */ 176 | 177 | /* Begin PBXResourcesBuildPhase section */ 178 | 97C146EC1CF9000F007C117D /* Resources */ = { 179 | isa = PBXResourcesBuildPhase; 180 | buildActionMask = 2147483647; 181 | files = ( 182 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 183 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 184 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 185 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 186 | ); 187 | runOnlyForDeploymentPostprocessing = 0; 188 | }; 189 | /* End PBXResourcesBuildPhase section */ 190 | 191 | /* Begin PBXShellScriptBuildPhase section */ 192 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 193 | isa = PBXShellScriptBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | ); 197 | inputPaths = ( 198 | ); 199 | name = "Thin Binary"; 200 | outputPaths = ( 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | shellPath = /bin/sh; 204 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 205 | }; 206 | 9740EEB61CF901F6004384FC /* Run Script */ = { 207 | isa = PBXShellScriptBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | ); 211 | inputPaths = ( 212 | ); 213 | name = "Run Script"; 214 | outputPaths = ( 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | shellPath = /bin/sh; 218 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 219 | }; 220 | /* End PBXShellScriptBuildPhase section */ 221 | 222 | /* Begin PBXSourcesBuildPhase section */ 223 | 97C146EA1CF9000F007C117D /* Sources */ = { 224 | isa = PBXSourcesBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 228 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXSourcesBuildPhase section */ 233 | 234 | /* Begin PBXVariantGroup section */ 235 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 236 | isa = PBXVariantGroup; 237 | children = ( 238 | 97C146FB1CF9000F007C117D /* Base */, 239 | ); 240 | name = Main.storyboard; 241 | sourceTree = ""; 242 | }; 243 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 244 | isa = PBXVariantGroup; 245 | children = ( 246 | 97C147001CF9000F007C117D /* Base */, 247 | ); 248 | name = LaunchScreen.storyboard; 249 | sourceTree = ""; 250 | }; 251 | /* End PBXVariantGroup section */ 252 | 253 | /* Begin XCBuildConfiguration section */ 254 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 255 | isa = XCBuildConfiguration; 256 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 257 | buildSettings = { 258 | ALWAYS_SEARCH_USER_PATHS = NO; 259 | CLANG_ANALYZER_NONNULL = YES; 260 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 261 | CLANG_CXX_LIBRARY = "libc++"; 262 | CLANG_ENABLE_MODULES = YES; 263 | CLANG_ENABLE_OBJC_ARC = YES; 264 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 265 | CLANG_WARN_BOOL_CONVERSION = YES; 266 | CLANG_WARN_COMMA = YES; 267 | CLANG_WARN_CONSTANT_CONVERSION = YES; 268 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 269 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 270 | CLANG_WARN_EMPTY_BODY = YES; 271 | CLANG_WARN_ENUM_CONVERSION = YES; 272 | CLANG_WARN_INFINITE_RECURSION = YES; 273 | CLANG_WARN_INT_CONVERSION = YES; 274 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 275 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 276 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 277 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 278 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 279 | CLANG_WARN_STRICT_PROTOTYPES = YES; 280 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 281 | CLANG_WARN_UNREACHABLE_CODE = YES; 282 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 283 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 284 | COPY_PHASE_STRIP = NO; 285 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 286 | ENABLE_NS_ASSERTIONS = NO; 287 | ENABLE_STRICT_OBJC_MSGSEND = YES; 288 | GCC_C_LANGUAGE_STANDARD = gnu99; 289 | GCC_NO_COMMON_BLOCKS = YES; 290 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 291 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 292 | GCC_WARN_UNDECLARED_SELECTOR = YES; 293 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 294 | GCC_WARN_UNUSED_FUNCTION = YES; 295 | GCC_WARN_UNUSED_VARIABLE = YES; 296 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 297 | MTL_ENABLE_DEBUG_INFO = NO; 298 | SDKROOT = iphoneos; 299 | SUPPORTED_PLATFORMS = iphoneos; 300 | TARGETED_DEVICE_FAMILY = "1,2"; 301 | VALIDATE_PRODUCT = YES; 302 | }; 303 | name = Profile; 304 | }; 305 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 306 | isa = XCBuildConfiguration; 307 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 308 | buildSettings = { 309 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 310 | CLANG_ENABLE_MODULES = YES; 311 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 312 | ENABLE_BITCODE = NO; 313 | FRAMEWORK_SEARCH_PATHS = ( 314 | "$(inherited)", 315 | "$(PROJECT_DIR)/Flutter", 316 | ); 317 | INFOPLIST_FILE = Runner/Info.plist; 318 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 319 | LIBRARY_SEARCH_PATHS = ( 320 | "$(inherited)", 321 | "$(PROJECT_DIR)/Flutter", 322 | ); 323 | PRODUCT_BUNDLE_IDENTIFIER = com.example.macroCalculator; 324 | PRODUCT_NAME = "$(TARGET_NAME)"; 325 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 326 | SWIFT_VERSION = 5.0; 327 | VERSIONING_SYSTEM = "apple-generic"; 328 | }; 329 | name = Profile; 330 | }; 331 | 97C147031CF9000F007C117D /* Debug */ = { 332 | isa = XCBuildConfiguration; 333 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 334 | buildSettings = { 335 | ALWAYS_SEARCH_USER_PATHS = NO; 336 | CLANG_ANALYZER_NONNULL = YES; 337 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 338 | CLANG_CXX_LIBRARY = "libc++"; 339 | CLANG_ENABLE_MODULES = YES; 340 | CLANG_ENABLE_OBJC_ARC = YES; 341 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 342 | CLANG_WARN_BOOL_CONVERSION = YES; 343 | CLANG_WARN_COMMA = YES; 344 | CLANG_WARN_CONSTANT_CONVERSION = YES; 345 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 347 | CLANG_WARN_EMPTY_BODY = YES; 348 | CLANG_WARN_ENUM_CONVERSION = YES; 349 | CLANG_WARN_INFINITE_RECURSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 352 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 353 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 354 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 355 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 356 | CLANG_WARN_STRICT_PROTOTYPES = YES; 357 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 358 | CLANG_WARN_UNREACHABLE_CODE = YES; 359 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 360 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 361 | COPY_PHASE_STRIP = NO; 362 | DEBUG_INFORMATION_FORMAT = dwarf; 363 | ENABLE_STRICT_OBJC_MSGSEND = YES; 364 | ENABLE_TESTABILITY = YES; 365 | GCC_C_LANGUAGE_STANDARD = gnu99; 366 | GCC_DYNAMIC_NO_PIC = NO; 367 | GCC_NO_COMMON_BLOCKS = YES; 368 | GCC_OPTIMIZATION_LEVEL = 0; 369 | GCC_PREPROCESSOR_DEFINITIONS = ( 370 | "DEBUG=1", 371 | "$(inherited)", 372 | ); 373 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 374 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 375 | GCC_WARN_UNDECLARED_SELECTOR = YES; 376 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 377 | GCC_WARN_UNUSED_FUNCTION = YES; 378 | GCC_WARN_UNUSED_VARIABLE = YES; 379 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 380 | MTL_ENABLE_DEBUG_INFO = YES; 381 | ONLY_ACTIVE_ARCH = YES; 382 | SDKROOT = iphoneos; 383 | TARGETED_DEVICE_FAMILY = "1,2"; 384 | }; 385 | name = Debug; 386 | }; 387 | 97C147041CF9000F007C117D /* Release */ = { 388 | isa = XCBuildConfiguration; 389 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 390 | buildSettings = { 391 | ALWAYS_SEARCH_USER_PATHS = NO; 392 | CLANG_ANALYZER_NONNULL = YES; 393 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 394 | CLANG_CXX_LIBRARY = "libc++"; 395 | CLANG_ENABLE_MODULES = YES; 396 | CLANG_ENABLE_OBJC_ARC = YES; 397 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 398 | CLANG_WARN_BOOL_CONVERSION = YES; 399 | CLANG_WARN_COMMA = YES; 400 | CLANG_WARN_CONSTANT_CONVERSION = YES; 401 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 402 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 403 | CLANG_WARN_EMPTY_BODY = YES; 404 | CLANG_WARN_ENUM_CONVERSION = YES; 405 | CLANG_WARN_INFINITE_RECURSION = YES; 406 | CLANG_WARN_INT_CONVERSION = YES; 407 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 408 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 409 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 410 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 411 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 412 | CLANG_WARN_STRICT_PROTOTYPES = YES; 413 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 414 | CLANG_WARN_UNREACHABLE_CODE = YES; 415 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 416 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 417 | COPY_PHASE_STRIP = NO; 418 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 419 | ENABLE_NS_ASSERTIONS = NO; 420 | ENABLE_STRICT_OBJC_MSGSEND = YES; 421 | GCC_C_LANGUAGE_STANDARD = gnu99; 422 | GCC_NO_COMMON_BLOCKS = YES; 423 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 424 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 425 | GCC_WARN_UNDECLARED_SELECTOR = YES; 426 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 427 | GCC_WARN_UNUSED_FUNCTION = YES; 428 | GCC_WARN_UNUSED_VARIABLE = YES; 429 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 430 | MTL_ENABLE_DEBUG_INFO = NO; 431 | SDKROOT = iphoneos; 432 | SUPPORTED_PLATFORMS = iphoneos; 433 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 434 | TARGETED_DEVICE_FAMILY = "1,2"; 435 | VALIDATE_PRODUCT = YES; 436 | }; 437 | name = Release; 438 | }; 439 | 97C147061CF9000F007C117D /* Debug */ = { 440 | isa = XCBuildConfiguration; 441 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 442 | buildSettings = { 443 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 444 | CLANG_ENABLE_MODULES = YES; 445 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 446 | ENABLE_BITCODE = NO; 447 | FRAMEWORK_SEARCH_PATHS = ( 448 | "$(inherited)", 449 | "$(PROJECT_DIR)/Flutter", 450 | ); 451 | INFOPLIST_FILE = Runner/Info.plist; 452 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 453 | LIBRARY_SEARCH_PATHS = ( 454 | "$(inherited)", 455 | "$(PROJECT_DIR)/Flutter", 456 | ); 457 | PRODUCT_BUNDLE_IDENTIFIER = com.example.macroCalculator; 458 | PRODUCT_NAME = "$(TARGET_NAME)"; 459 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 460 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 461 | SWIFT_VERSION = 5.0; 462 | VERSIONING_SYSTEM = "apple-generic"; 463 | }; 464 | name = Debug; 465 | }; 466 | 97C147071CF9000F007C117D /* Release */ = { 467 | isa = XCBuildConfiguration; 468 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 469 | buildSettings = { 470 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 471 | CLANG_ENABLE_MODULES = YES; 472 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 473 | ENABLE_BITCODE = NO; 474 | FRAMEWORK_SEARCH_PATHS = ( 475 | "$(inherited)", 476 | "$(PROJECT_DIR)/Flutter", 477 | ); 478 | INFOPLIST_FILE = Runner/Info.plist; 479 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 480 | LIBRARY_SEARCH_PATHS = ( 481 | "$(inherited)", 482 | "$(PROJECT_DIR)/Flutter", 483 | ); 484 | PRODUCT_BUNDLE_IDENTIFIER = com.example.macroCalculator; 485 | PRODUCT_NAME = "$(TARGET_NAME)"; 486 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 487 | SWIFT_VERSION = 5.0; 488 | VERSIONING_SYSTEM = "apple-generic"; 489 | }; 490 | name = Release; 491 | }; 492 | /* End XCBuildConfiguration section */ 493 | 494 | /* Begin XCConfigurationList section */ 495 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 496 | isa = XCConfigurationList; 497 | buildConfigurations = ( 498 | 97C147031CF9000F007C117D /* Debug */, 499 | 97C147041CF9000F007C117D /* Release */, 500 | 249021D3217E4FDB00AE95B9 /* Profile */, 501 | ); 502 | defaultConfigurationIsVisible = 0; 503 | defaultConfigurationName = Release; 504 | }; 505 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 506 | isa = XCConfigurationList; 507 | buildConfigurations = ( 508 | 97C147061CF9000F007C117D /* Debug */, 509 | 97C147071CF9000F007C117D /* Release */, 510 | 249021D4217E4FDB00AE95B9 /* Profile */, 511 | ); 512 | defaultConfigurationIsVisible = 0; 513 | defaultConfigurationName = Release; 514 | }; 515 | /* End XCConfigurationList section */ 516 | }; 517 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 518 | } 519 | --------------------------------------------------------------------------------