Skip to content

Commit

Permalink
fix: android
Browse files Browse the repository at this point in the history
  • Loading branch information
amaralkaff committed Nov 5, 2024
1 parent 5b1dc4d commit d5e4d19
Show file tree
Hide file tree
Showing 13 changed files with 117 additions and 15 deletions.
20 changes: 8 additions & 12 deletions lib/views/splash_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import 'package:workout_ai/views/pose_detection_view.dart';
import 'package:workout_ai/views/sit_up_detector_view.dart';
import 'package:workout_ai/widgets/progress_tracker.dart';
import 'package:workout_ai/widgets/workout_card.dart';
import 'package:google_fonts/google_fonts.dart';
import 'dart:developer';

class SplashScreen extends StatefulWidget {
Expand Down Expand Up @@ -515,18 +516,13 @@ class _SplashScreenState extends State<SplashScreen>
return Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Hero(
tag: 'app_logo',
child: Image.asset(
'assets/workout_logo.png',
height: 100,
errorBuilder: (context, error, stackTrace) {
return const Icon(
Icons.fitness_center,
size: 32,
color: Colors.black,
);
},
Text(
'WorkOut AI',
style: GoogleFonts.poppins(
fontSize: 18,
fontWeight: FontWeight.bold,
color: Colors.black,
letterSpacing: 1.2,
),
),
TextButton.icon(
Expand Down
15 changes: 15 additions & 0 deletions linux/flutter/generated_plugin_registrant.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// Generated file. Do not edit.
//

// clang-format off

#include "generated_plugin_registrant.h"

#include <file_selector_linux/file_selector_plugin.h>

void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) file_selector_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "FileSelectorPlugin");
file_selector_plugin_register_with_registrar(file_selector_linux_registrar);
}
15 changes: 15 additions & 0 deletions linux/flutter/generated_plugin_registrant.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// Generated file. Do not edit.
//

// clang-format off

#ifndef GENERATED_PLUGIN_REGISTRANT_
#define GENERATED_PLUGIN_REGISTRANT_

#include <flutter_linux/flutter_linux.h>

// Registers Flutter plugins.
void fl_register_plugins(FlPluginRegistry* registry);

#endif // GENERATED_PLUGIN_REGISTRANT_
24 changes: 24 additions & 0 deletions linux/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Generated file, do not edit.
#

list(APPEND FLUTTER_PLUGIN_LIST
file_selector_linux
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
)

set(PLUGIN_BUNDLED_LIBRARIES)

foreach(plugin ${FLUTTER_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/linux plugins/${plugin})
target_link_libraries(${BINARY_NAME} PRIVATE ${plugin}_plugin)
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
endforeach(plugin)

foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
endforeach(ffi_plugin)
16 changes: 16 additions & 0 deletions macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// Generated file. Do not edit.
//

import FlutterMacOS
import Foundation

import file_selector_macos
import path_provider_foundation
import shared_preferences_foundation

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
}
11 changes: 11 additions & 0 deletions macos/Flutter/ephemeral/Flutter-Generated.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=/Users/amangly/flutter
FLUTTER_APPLICATION_PATH=/Users/amangly/Documents/workout_ai
COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_BUILD_DIR=build
FLUTTER_BUILD_NAME=1.0.0
FLUTTER_BUILD_NUMBER=1
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=true
TREE_SHAKE_ICONS=false
PACKAGE_CONFIG=.dart_tool/package_config.json
12 changes: 12 additions & 0 deletions macos/Flutter/ephemeral/flutter_export_environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/Users/amangly/flutter"
export "FLUTTER_APPLICATION_PATH=/Users/amangly/Documents/workout_ai"
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=true"
export "TREE_SHAKE_ICONS=false"
export "PACKAGE_CONFIG=.dart_tool/package_config.json"
8 changes: 8 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,14 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
google_fonts:
dependency: "direct main"
description:
name: google_fonts
sha256: b1ac0fe2832c9cc95e5e88b57d627c5e68c223b9657f4b96e1487aa9098c7b82
url: "https://pub.dev"
source: hosted
version: "6.2.1"
google_ml_kit:
dependency: "direct main"
description:
Expand Down
7 changes: 4 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: workout_ai
description: "AI-powered workout app featuring push-up counting with ML Kit and other exercise tracking capabilities"
publish_to: 'none'
publish_to: "none"
version: 1.0.0+1

environment:
Expand All @@ -15,7 +15,8 @@ dependencies:
cupertino_icons: ^1.0.8
flutter_bloc: ^8.1.3
google_ml_kit: ^0.19.0
google_mlkit_commons: ^0.9.0 # Updated from ^0.5.0
google_mlkit_commons: ^0.9.0
google_fonts: ^6.1.0
image_picker: ^1.0.1
camera: ^0.10.5+2
path: ^1.8.3
Expand All @@ -41,4 +42,4 @@ flutter_icons:
ios: true
image_path: "assets/icon.png"
min_sdk_android: 21
remove_alpha_ios: true
remove_alpha_ios: true

0 comments on commit d5e4d19

Please sign in to comment.