first commit

This commit is contained in:
savinasz 2024-05-31 09:13:14 +07:00
commit f4eba77057
104 changed files with 6872 additions and 0 deletions

44
.gitignore vendored Normal file
View File

@ -0,0 +1,44 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/
# IntelliJ related
*.iml
*.ipr
*.iws
.idea/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/
# Symbolication related
app.*.symbols
# Obfuscation related
app.*.map.json
# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release

33
.metadata Normal file
View File

@ -0,0 +1,33 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled.
version:
revision: eb6d86ee27deecba4a83536aa20f366a6044895c
channel: stable
project_type: app
# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
base_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
- platform: macos
create_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
base_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
- platform: windows
create_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
base_revision: eb6d86ee27deecba4a83536aa20f366a6044895c
# User provided section
# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'

16
README.md Normal file
View File

@ -0,0 +1,16 @@
# she_healthy_desktop
A new Flutter project.
## Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.

29
analysis_options.yaml Normal file
View File

@ -0,0 +1,29 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

File diff suppressed because one or more lines are too long

BIN
assets/placeholder.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
assets/sh_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,10 @@
const String all = 'ALL';
const String cnnBreast = 'CNN_BREAST';
const String cnnCervix = 'CNN_CERVIX';
const String pcaBreast = 'PCA_BREAST';
const String pcaCervix = 'PCA_CERVIX';
const String regressionBreast = 'REGRESSION_BREAST';
const String regressionCervix = 'REGRESSION_CERVIX';

View File

@ -0,0 +1,11 @@
class Item {
Item({
required this.expandedValue,
required this.headerValue,
this.isExpanded = false,
});
List<String> expandedValue;
String headerValue;
bool isExpanded;
}

View File

@ -0,0 +1,11 @@
import 'dart:io';
class UploadClassificationRequest {
UploadClassificationRequest({this.files});
File? files;
Map<String, dynamic> toJson() => {
"file": files
};
}

View File

@ -0,0 +1,41 @@
import 'dart:convert';
ClassificationResponse classificationResponseFromJson(String str) => ClassificationResponse.fromJson(json.decode(str));
String classificationResponseToJson(ClassificationResponse data) => json.encode(data.toJson());
class ClassificationResponse {
ClassificationResponse({
required this.data,
required this.assumption,
required this.pattern,
required this.feature,
required this.time,
required this.akurasi,
});
String data;
String assumption;
String pattern;
String feature;
String time;
String akurasi;
factory ClassificationResponse.fromJson(Map<String, dynamic> json) => ClassificationResponse(
data: json["data"] ?? "",
assumption: json["assumption"] ?? "",
pattern: json["pattern"] ?? "",
feature: json["feature"] ?? "",
time: json["time"] ?? "",
akurasi: json["akurasi"] ?? "",
);
Map<String, dynamic> toJson() => {
"data": data,
"assumption": assumption,
"pattern": pattern,
"feature": feature,
"time": time,
"akurasi": akurasi,
};
}

View File

@ -0,0 +1,67 @@
import 'dart:convert';
import 'dart:io';
import 'package:http/http.dart' as http;
import 'package:http_parser/http_parser.dart';
import 'package:logger/logger.dart';
const BASE_URL = 'http://127.0.0.1:8000';
abstract class NetworkService {
final logger = Logger(printer: PrettyPrinter());
Future<dynamic> getMethod(String endPoint, Map<String, String>? headers) async {
try {
final response = await http.get(Uri.parse(endPoint), headers: headers);
var res = json.decode(response.body);
logger.d(res);
return res;
} on SocketException {
throw Exception("Connection Failed");
}
}
Future<dynamic> postMethod(String endpoint,
{dynamic body, Map<String, String>? headers}) async {
try {
final response = await http.post(Uri.parse(endpoint),
body: json.encode(body), headers: headers);
Map<String, dynamic> res = jsonDecode(response.body);
logger.d(res);
return res;
} on SocketException {
throw Exception("Connection Failed");
}
}
Future<dynamic> postMethodNoBody(String endpoint,
{ Map<String, String>? headers}) async {
try {
final response = await http.post(Uri.parse(endpoint), headers: headers);
Map<String, dynamic> res = jsonDecode(response.body);
logger.d(res);
return res;
} on SocketException {
throw Exception("Connection Failed");
}
}
Future<dynamic> createClassificationPost(String endpoint,
{Map<String, String>? header, required File file}) async {
try {
var uri = Uri.parse(endpoint);
var request = http.MultipartRequest("POST", uri);
request.files.add(await http.MultipartFile.fromPath('file', file.path,
contentType: MediaType('image','*')));
var response = await request.send().then(http.Response.fromStream);
var res = jsonDecode(response.body);
logger.d(res);
return res;
} on SocketException {
throw Exception("Connection Failed");
}
}
}

View File

@ -0,0 +1,56 @@
import 'dart:io';
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import '../../presentation/components/dropdown/dropdown_value.dart';
import '../data/response/classification_response.dart';
import '../network/network_service.dart';
class ClassificationRepository extends NetworkService {
ClassificationRepository();
final storage = const FlutterSecureStorage();
ClassificationRepository._privateConstructor();
static final ClassificationRepository _instance =
ClassificationRepository._privateConstructor();
static ClassificationRepository get instance => _instance;
Map<String, String> header = {};
final String contentType = "Content-Type";
final String applicationJson = "application/json";
final String token = "token";
Future<ClassificationResponse> uploadClassification(
File file, String classificationType, String cancerType) async {
String? readData = await storage.read(key: 'token') ?? "";
String url = '';
if (cancerType == cancerItem[1] && classificationType == classificationItem[1]) {
url = "$BASE_URL/classification_lvq_All_cervix/";
} else if (cancerType == cancerItem[1] && classificationType == classificationItem[2]) {
url = "$BASE_URL/classification_lvq_PCA_cervix/";
} else if (cancerType == cancerItem[1] && classificationType == classificationItem[3]){
url = "$BASE_URL/classification_lvq_regresi_cervix/";
} else if (cancerType == cancerItem[1] && classificationType == classificationItem[0]){
url = "$BASE_URL/classification_cnn_cervix/";
} else if (cancerType == cancerItem[0] && classificationType == classificationItem[1]) {
url = "$BASE_URL/classification_lvq_All_breast/";
} else if (cancerType == cancerItem[0] && classificationType == classificationItem[2]) {
url = "$BASE_URL/classification_lvq_PCA_breast/";
} else if (cancerType == cancerItem[0] && classificationType == classificationItem[3]){
url = "$BASE_URL/classification_lvq_regresi_breast/";
} else if (cancerType == cancerItem[0] && classificationType == classificationItem[0]){
url = "$BASE_URL/classification_cnn_breast/";
}
print("URL IS ${url}");
var header = {contentType: applicationJson, token: readData};
var map = await createClassificationPost(url, file: file, header: header);
return ClassificationResponse.fromJson(map);
}
}

View File

@ -0,0 +1,148 @@
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
const String poppins = 'Poppins';
double defaultMargin = 30.0;
Map<int, Color> color =
{
50:const Color.fromRGBO(104,108,255, .1),
100:const Color.fromRGBO(104,108,255, .2),
200:const Color.fromRGBO(104,108,255, .3),
300:const Color.fromRGBO(104,108,255, .4),
400:const Color.fromRGBO(104,108,255, .5),
500:const Color.fromRGBO(104,108,255, .6),
600:const Color.fromRGBO(104,108,255, .7),
700:const Color.fromRGBO(104,108,255, .8),
800:const Color.fromRGBO(104,108,255, .9),
900:const Color.fromRGBO(104,108,255, 1),
};
MaterialColor primaryThemeColor = MaterialColor(0xFF1EC28B, color);
class AppTheme {
static const Color primaryColor = Color(0xFF686CFF);
static const Color primaryColorLighter = Color(0xFF7478EA);
static const Color primaryColorDarker = Color(0xFF4548C5);
static const Color greyDark = Color(0xFF504F5E);
static const Color fieldColor = Color(0xFFF3F2F2);
static const Color alert = Color(0xffED6363);
static const Color redColor = Color(0xffF30A0A);
static const Color primaryColorBrighter = Color(0xFFD7F4E6);
static const Color lightGrey = Color(0xffE8E5E5);
static const Color yellowStar = Color(0xffFCAE03);
static const Color borderColor = Color(0xFFCECECE);
static const Color canvasColor = Color(0xFFEEEEF5);
static const Color neutralColor = Color(0xFFF4EFF4);
static TextStyle get primaryTextStyle => GoogleFonts.getFont(
poppins,
color: Colors.black,
);
static TextStyle get priceTextStyle => GoogleFonts.getFont(
poppins,
color: AppTheme.primaryColor,
);
static TextStyle get alertTextStyle => GoogleFonts.getFont(
poppins,
color: AppTheme.alert,
);
static TextStyle get title => GoogleFonts.getFont(
poppins,
color: AppTheme.primaryColorDarker,
fontWeight: FontWeight.w600,
fontSize: 24,
);
static TextStyle get title2 => GoogleFonts.getFont(
poppins,
color: AppTheme.primaryColorDarker,
fontWeight: FontWeight.w600,
fontSize: 22,
);
static TextStyle get bodyText => GoogleFonts.getFont(poppins,
color: AppTheme.greyDark, fontWeight: FontWeight.w400, fontSize: 15);
static TextStyle get title1 => GoogleFonts.getFont(
poppins,
color: Colors.black,
fontWeight: FontWeight.w600,
fontSize: 18,
);
static TextStyle get smallTitle => GoogleFonts.getFont(
poppins,
color: Colors.black,
fontWeight: FontWeight.w500,
fontSize: 14,
);
static TextStyle get smallText => GoogleFonts.getFont(
poppins,
color: Colors.black,
fontSize: 12,
);
static TextStyle get smallTitleRed => GoogleFonts.getFont(
poppins,
color: redColor,
fontWeight: FontWeight.w500,
fontSize: 14,
);
static TextStyle get smallTitlePrimaryColor => GoogleFonts.getFont(
poppins,
color: primaryColor,
fontWeight: FontWeight.w500,
fontSize: 14,
);
static TextStyle get subTitle => GoogleFonts.getFont(
poppins,
color: Colors.black,
fontWeight: FontWeight.w600,
fontSize: 16,
);
static TextStyle get subTitleNonBold => GoogleFonts.getFont(
poppins,
color: Colors.black,
fontWeight: FontWeight.normal,
fontSize: 16,
);
static TextStyle get subTitleButton => GoogleFonts.getFont(
poppins,
color: primaryColor,
fontWeight: FontWeight.w600,
fontSize: 16,
);
static TextStyle get text1 => GoogleFonts.getFont(
poppins,
color: Colors.black,
fontWeight: FontWeight.w400,
fontSize: 14);
static TextStyle get smallBodyGrey => GoogleFonts.getFont(
poppins,
color: Colors.black54,
fontSize: 12);
static TextStyle get darktitle => GoogleFonts.getFont(
poppins,
color: AppTheme.greyDark,
fontWeight: FontWeight.w600,
fontSize: 24,
);
}
FontWeight light = FontWeight.w300;
FontWeight regular = FontWeight.w400;
FontWeight medium = FontWeight.w500;
FontWeight semiBold = FontWeight.w600;
FontWeight bold = FontWeight.w700;

21
lib/main.dart Normal file
View File

@ -0,0 +1,21 @@
import 'package:flutter/material.dart';
import 'package:she_healthy_desktop/presentation/pages/splash_page.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
debugShowCheckedModeBanner: false,
home: const SplashScreen(),
);
}
}

View File

@ -0,0 +1,65 @@
import '../../../core/constant/glcm_type.dart';
import '../../../core/data/response/classification_response.dart';
import '../../../core/repository/classification_repository.dart';
import 'classification_event.dart';
import 'classification_state.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
class ClassificationBloc
extends Bloc<ClassificationEvent, ClassificationState> {
late ClassificationRepository _repository;
ClassificationBloc() : super(InitClassificationState()) {
_repository = ClassificationRepository.instance;
on<UploadClassification>((event, emit) async {
emit(ShowLoading());
var data = await _repository.uploadClassification(
event.file, event.classificationType, event.cancerType);
// var data = ClassificationResponse(data: 'wqeqweqew', assumption: '');
if (data.data.isNotEmpty) {
String glcmType = all;
if (event.classificationType == 'GLCM All + LVQ') {
glcmType = all;
} else if (event.classificationType == 'GLCM PCA + LVQ') {
if (event.cancerType == 'Breast') {
glcmType = pcaBreast;
} else if (event.cancerType == 'Cervix') {
glcmType = pcaCervix;
}
} else if (event.classificationType == 'GLCM regresi + LVQ') {
if (event.cancerType == 'Breast') {
glcmType = regressionBreast;
} else if (event.cancerType == 'Cervix') {
glcmType = regressionCervix;
}
} else if (event.classificationType == 'CNN') {
if (event.cancerType == 'Breast') {
glcmType = cnnBreast;
} else if (event.cancerType == 'Cervix') {
glcmType = cnnCervix;
}
}
emit(ShowSuccessClassification(
data: data.data,
glcmType: glcmType,
assumption: data.assumption,
pattern: data.pattern,
feature: data.feature,
time: data.time,
akurasi: data.akurasi,
image: event.file,
classificationType: event.classificationType,
cancerType: event.cancerType
));
} else {
emit(ShowFailedClassification());
}
});
on<ResetClassification>((event, emit) async {
emit(ShowIdle());
});
}
}

View File

@ -0,0 +1,12 @@
import 'dart:io';
abstract class ClassificationEvent {}
class UploadClassification extends ClassificationEvent {
final File file;
final String classificationType, cancerType;
UploadClassification({required this.file, required this.classificationType, required this.cancerType});
}
class ResetClassification extends ClassificationEvent {}

View File

@ -0,0 +1,28 @@
import 'dart:io';
abstract class ClassificationState {}
class InitClassificationState extends ClassificationState {}
class ShowLoading extends ClassificationState {}
class ShowIdle extends ClassificationState {}
class ShowSuccessClassification extends ClassificationState {
final String data, assumption, classificationType, cancerType, glcmType, pattern, feature, time, akurasi;
File image;
ShowSuccessClassification(
{required this.data,
required this.pattern,
required this.feature,
required this.time,
required this.akurasi,
required this.assumption,
required this.image,
required this.classificationType,
required this.glcmType,
required this.cancerType});
}
class ShowFailedClassification extends ClassificationState {}

View File

@ -0,0 +1,105 @@
import 'package:flutter/material.dart';
import '../../../core/theme/app_primary_theme.dart';
AppBar customGenericAppbar(
BuildContext context, String title, Function() onTap) {
return AppBar(
leading: InkWell(
onTap: () => Navigator.pop(context),
child: const Icon(
Icons.arrow_back,
color: Colors.white,
)),
backgroundColor: AppTheme.primaryColor,
title: Text(
title,
style: const TextStyle(color: Colors.white),
),
);
}
class HomeAppBar extends StatelessWidget {
final String url;
const HomeAppBar({Key? key, required this.url}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
margin: const EdgeInsets.symmetric(horizontal: 12),
padding: const EdgeInsets.symmetric(horizontal: 16),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
),
height: 56,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
SizedBox(
width: 72,
height: 36,
child: Image.asset("assets/sh_logo.png")),
const Spacer(),
const Padding(
padding: EdgeInsets.only(right: 6.0),
child: Icon(
Icons.settings,
color: AppTheme.primaryColor,
size: 26,
),
),
],
),
);
}
}
class GenericAppBar extends StatelessWidget {
final String url, title;
const GenericAppBar({Key? key, required this.url, required this.title})
: super(key: key);
@override
Widget build(BuildContext context) {
return Container(
margin: const EdgeInsets.symmetric(horizontal: 12),
padding: const EdgeInsets.symmetric(horizontal: 16),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
),
height: 56,
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
InkWell(
onTap: () => Navigator.pop(context),
child: const Icon(
Icons.arrow_back,
color: AppTheme.primaryColor,
),
),
Padding(
padding: const EdgeInsets.only(left: 4.0),
child: Text(
title,
style: AppTheme.subTitle.copyWith(color: AppTheme.primaryColor),
),
),
const Spacer(),
const Padding(
padding: EdgeInsets.only(right: 8.0),
child: Icon(
Icons.settings,
color: AppTheme.primaryColor,
size: 26,
),
),
],
),
);
}
}

View File

@ -0,0 +1,148 @@
import 'dart:math';
import 'dart:ui';
import 'package:flutter/material.dart';
const Curve _curve = Curves.ease;
const Duration _duration = Duration(milliseconds: 300);
class HoverButton extends StatefulWidget {
const HoverButton({
Key? key,
required this.color,
this.icon,
required this.text,
}) : super(key: key);
final Color color;
final Widget? icon;
final String text;
@override
_HoverButtonState createState() => _HoverButtonState();
}
class _HoverButtonState extends State<HoverButton> {
bool hover = false;
@override
Widget build(BuildContext context) => GestureDetector(
onTapDown: (_) => setState(() => hover = true),
onTapUp: (_) => setState(() => hover = false),
onTapCancel: () => setState(() => hover = false),
child: MouseRegion(
onHover: (_) => setState(() => hover = true),
onExit: (_) => setState(() => hover = false),
child: Container(
width: 78,
height: 96,
child: Center(
child: Container(
margin: EdgeInsets.only(top: 4),
child: Stack(
alignment: Alignment.center,
children: [
AnimatedPositioned(
curve: _curve,
duration: _duration,
bottom: hover ? -20 : -14,
child: AnimatedOpacity(
curve: _curve,
duration: _duration,
opacity: hover ? 1 : 0,
child: Text(
widget.text,
style: TextStyle(
color: widget.color,
),
),
),
),
_HoverBorderContainer(
color: widget.color,
icon: widget.icon,
hover: hover,
offset: Offset(0, -0.5),
),
...List.generate(4, (index) {
return _HoverBorderContainer(
color: widget.color,
hover: hover,
offset: Offset(0, -(index + 1) * 0.1),
opacity: (index + 1) * 0.2,
);
}),
],
),
),
),
),
),
);
}
class _HoverBorderContainer extends ImplicitlyAnimatedWidget {
const _HoverBorderContainer({
Key? key,
required this.color,
this.icon,
required this.offset,
this.opacity,
this.hover = false,
Duration duration = _duration,
Curve curve = _curve,
}) : super(
key: key,
duration: duration,
curve: curve,
);
final Color color;
final Widget? icon;
final bool hover;
final Offset offset;
final double? opacity;
@override
__HoverBorderContainerState createState() => __HoverBorderContainerState();
}
class __HoverBorderContainerState
extends AnimatedWidgetBaseState<_HoverBorderContainer> {
Tween<double>? _doubleTween;
@override
Widget build(BuildContext context) {
double value = _doubleTween?.evaluate(animation) ?? 0.0;
return FractionalTranslation(
translation: Offset.lerp(Offset.zero, widget.offset, value)!,
child: Transform.rotate(
alignment: Alignment.center,
angle: lerpDouble(0, -35 * pi / 180, value)!,
child: Transform(
alignment: Alignment.center,
transform: Matrix4.skewX(lerpDouble(0, 20 * pi / 180, value)!),
child: Container(
height: 44,
width: 44,
decoration: BoxDecoration(
border: Border.all(
color: widget.color,
),
borderRadius: BorderRadius.circular(5),
),
child: ConstrainedBox(
constraints: BoxConstraints.tight(Size.square(26)),
child: widget.icon,
),
),
),
),
);
}
@override
void forEachTween(visitor) {
_doubleTween = visitor(_doubleTween, widget.hover ? 1.0 : 0.0,
(value) => Tween<double>(begin: value as double)) as Tween<double>;
}
}

View File

@ -0,0 +1,57 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import '../../../core/theme/app_primary_theme.dart';
class PrimaryButton extends StatelessWidget {
final BuildContext context;
final bool isEnabled;
final Function() onPressed;
final Function()? onInActivePressed;
final String text;
final Color? color, textColor;
final double? width, height, borderRadius, horizontalPadding, textSize, elevation;
final double? margin;
final TextStyle? style;
const PrimaryButton(
{Key? key,
required this.context,
required this.isEnabled,
required this.onPressed,
this.color,
this.margin,
this.style,
required this.text, this.width, this.height, this.borderRadius, this.horizontalPadding, this.textSize, this.elevation, this.textColor, this.onInActivePressed})
: super(key: key);
@override
Widget build(BuildContext context) {
final ButtonStyle raisedButtonStyle = ElevatedButton.styleFrom(
foregroundColor: Colors.white, backgroundColor: !isEnabled ? Colors.grey : color ?? AppTheme.primaryColor,
elevation: elevation ?? 2,
padding: EdgeInsets.symmetric(horizontal: horizontalPadding ?? 16),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(borderRadius ?? 12)),
),
);
return Container(
height: height ?? 55,
width: width,
margin: EdgeInsets.symmetric(horizontal: margin ?? 16),
child: ElevatedButton(
style: raisedButtonStyle,
onPressed: isEnabled ? onPressed : onInActivePressed ?? () {},
child: Text(
text,
style: style ?? AppTheme.smallTitle.copyWith(
color: textColor ?? Colors.white,
fontSize: 15,
),
),
),
);
}
}

View File

@ -0,0 +1,47 @@
import 'package:flutter/material.dart';
void chooseImage(
{required BuildContext context,
required Function() onTapGallery,
Function()? onTapFullScreen}) {
showDialog(
context: context,
builder: (ctx) => Padding(
padding: const EdgeInsets.all(16.0),
child: Center(
child: SizedBox(
width: 300,
child: Material(
borderRadius: BorderRadius.circular(16),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
InkWell(
onTap: onTapGallery,
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Row(children: const [
Icon(Icons.image, size: 24, color: Colors.black),
SizedBox(width: 16),
Text("Retake gambar", style: TextStyle(fontSize: 16))
]),
),
),
onTapFullScreen != null ? InkWell(
onTap: onTapFullScreen,
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Row(children: const [
Icon(Icons.fullscreen, size: 24, color: Colors.black),
SizedBox(width: 16),
Text("Lihat Foto", style: TextStyle(fontSize: 16))
]),
),
) : const SizedBox()
],
),
),
),
),
));
}

View File

@ -0,0 +1,57 @@
import 'package:flutter/material.dart';
void chooseVideo(
{required BuildContext context,
required Function() onTapGallery,
required Function() onTapCamera,
Function()? onTapFullScreen}) {
showDialog(
context: context,
builder: (ctx) => Padding(
padding: const EdgeInsets.all(16.0),
child: Center(
child: Material(
borderRadius: BorderRadius.circular(16),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
InkWell(
onTap: onTapCamera,
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Row(children: const [
Icon(Icons.videocam,
size: 24, color: Colors.black),
SizedBox(width: 16),
Text("Ambil Video", style: TextStyle(fontSize: 16))
]),
),
),
InkWell(
onTap: onTapGallery,
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Row(children: const [
Icon(Icons.image, size: 24, color: Colors.black),
SizedBox(width: 16),
Text("Dari Galeri", style: TextStyle(fontSize: 16))
]),
),
),
onTapFullScreen != null ? InkWell(
onTap: onTapFullScreen,
child: Padding(
padding: const EdgeInsets.all(20.0),
child: Row(children: const [
Icon(Icons.fullscreen, size: 24, color: Colors.black),
SizedBox(width: 16),
Text("Lihat Video", style: TextStyle(fontSize: 16))
]),
),
) : const SizedBox()
],
),
),
),
));
}

View File

@ -0,0 +1,104 @@
import 'package:cool_alert/cool_alert.dart';
import 'package:flutter/material.dart';
import '../../../core/theme/app_primary_theme.dart';
void showSuccessDialog(
{required BuildContext context,
required String title,
required String message,
VoidCallback? onTap}) {
CoolAlert.show(
context: context,
type: CoolAlertType.success,
title: title,
text: message,
confirmBtnText: "OK",
loopAnimation: false,
barrierDismissible: false,
confirmBtnColor: AppTheme.primaryColor,
onConfirmBtnTap: onTap);
}
void showLoadingDialog({required BuildContext context, String? loadingText}) {
CoolAlert.show(
context: context,
type: CoolAlertType.loading,
text: loadingText ?? 'Loading..',
barrierDismissible: false);
}
void showFailedDialog(
{required BuildContext context,
required String title,
required String message,
VoidCallback? onTap}) {
CoolAlert.show(
context: context,
type: CoolAlertType.error,
title: title,
text: message,
loopAnimation: false,
barrierDismissible: false,
confirmBtnColor: AppTheme.primaryColor,
onConfirmBtnTap: onTap);
}
void showWarningDialog(
{required BuildContext context,
required String title,
required String message,
VoidCallback? onTap}) {
CoolAlert.show(
context: context,
confirmBtnColor: AppTheme.primaryColor,
type: CoolAlertType.warning,
title: title,
width: 400,
text: message,
loopAnimation: false,
barrierDismissible: false,
onConfirmBtnTap: onTap);
}
void showOkDialog(BuildContext context, String title, String message) {
showDialog(
context: context,
builder: (context) => AlertDialog(
title: Text(title),
content: Text(message),
actions: <Widget>[
TextButton(
onPressed: () => Navigator.of(context).pop(false),
child: const Text('OK'),
),
],
),
);
}
void showYesNoDialog(
{required BuildContext context,
required String title,
required String message,
required Function() onYesTap,
required Function() onNoTap}) {
showDialog(
context: context,
builder: (context) => AlertDialog(
title: Text(title),
content: Text(message),
actions: <Widget>[
TextButton(
onPressed: onNoTap,
child: const Text('Tidak'),
),
TextButton(
onPressed: onYesTap,
child: const Text('Iya'),
),
],
),
);
}

View File

@ -0,0 +1,27 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Future<bool> showExitAppDialog(BuildContext context) async {
return (await showDialog(
context: context,
builder: (context) => AlertDialog(
title: const Text('Keluar Dari MoGawe?'),
content: const Text(
'Apakah kamu yakin untuk keluar dari aplikasi MoGawe?'),
actions: <Widget>[
TextButton(
onPressed: () => Navigator.of(context).pop(false),
child: const Text('Tidak'),
),
TextButton(
onPressed: () {
// Terbaik untuk semua platform
SystemChannels.platform.invokeMethod('SystemNavigator.pop');
},
child: const Text('Iya'),
),
],
),
)) ??
false;
}

View File

@ -0,0 +1,14 @@
const String initialDataShown = 'CNN';
const String initialCancerDataShown = 'Breast';
List<String> classificationItem = [
'CNN',
'GLCM All + LVQ',
'GLCM PCA + LVQ',
'GLCM regresi + LVQ',
];
List<String> cancerItem = [
'Breast',
'Cervix',
];

View File

@ -0,0 +1,34 @@
import 'package:flutter/material.dart';
class GenericDropdown extends StatelessWidget {
final String selectedItem;
final List<String> items;
final Function(String?)? onChanged;
final double? width, height;
final Color? backgroundColor, borderColor;
const GenericDropdown({Key? key, required this.selectedItem, required this.items, required this.onChanged, this.width, this.height, this.backgroundColor, this.borderColor}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
height: height ?? 55,
width: width,
margin: const EdgeInsets.symmetric(horizontal: 15),
padding: const EdgeInsets.symmetric(horizontal: 15),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
border: Border.all(color: borderColor ?? Colors.black38),
color: backgroundColor
),
child: DropdownButtonHideUnderline(
child: DropdownButton(
value: selectedItem,
items: items
.map((String e) =>
DropdownMenuItem(value: e, child: Text(e)))
.toList(),
onChanged: onChanged),
),
);
}
}

View File

@ -0,0 +1,312 @@
import 'dart:ui' as ui;
import 'package:flutter/material.dart';
//Copy this CustomPainter code to the Bottom of the File
class EmptyBackground extends CustomPainter {
@override
void paint(Canvas canvas, Size size) {
Path path_0 = Path();
path_0.moveTo(size.width*0.5256240,size.height*0.9974000);
path_0.cubicTo(size.width*0.7873926,size.height*0.9974000,size.width*0.9995950,size.height*0.7741261,size.width*0.9995950,size.height*0.4987000);
path_0.cubicTo(size.width*0.9995950,size.height*0.2232757,size.width*0.7873926,0,size.width*0.5256240,0);
path_0.cubicTo(size.width*0.2638570,0,size.width*0.05165289,size.height*0.2232757,size.width*0.05165289,size.height*0.4987000);
path_0.cubicTo(size.width*0.05165289,size.height*0.7741261,size.width*0.2638570,size.height*0.9974000,size.width*0.5256240,size.height*0.9974000);
path_0.close();
Paint paint_0_fill = Paint()..style=PaintingStyle.fill;
paint_0_fill.shader = ui.Gradient.linear(Offset(size.width*0.5219711,size.height*-16.23891), Offset(size.width*0.5316818,size.height*1.588970), [Color(0xffF3F2F2).withOpacity(0.3),Color(0xffEEF0F2).withOpacity(1)], [0,1]);
canvas.drawPath(path_0,paint_0_fill);
Path path_1 = Path();
path_1.moveTo(size.width*0.7997727,size.height*0.1799930);
path_1.lineTo(size.width*0.3729864,size.height*0.1799930);
path_1.cubicTo(size.width*0.3463843,size.height*0.1799930,size.width*0.3248190,size.height*0.2026835,size.width*0.3248190,size.height*0.2306735);
path_1.lineTo(size.width*0.8479380,size.height*0.2306735);
path_1.cubicTo(size.width*0.8479380,size.height*0.2026835,size.width*0.8263719,size.height*0.1799930,size.width*0.7997727,size.height*0.1799930);
path_1.close();
Paint paint_1_fill = Paint()..style=PaintingStyle.fill;
paint_1_fill.shader = ui.Gradient.linear(Offset(size.width*0.3242264,size.height*0.1916896), Offset(size.width*0.8481983,size.height*0.2305639), [Color(0xffE5E5EA).withOpacity(1),Color(0xffC4C4C4).withOpacity(1)], [0,1]);
canvas.drawPath(path_1,paint_1_fill);
Path path_2 = Path();
path_2.moveTo(size.width*0.3248190,size.height*0.2292970);
path_2.lineTo(size.width*0.8479380,size.height*0.2292970);
path_2.lineTo(size.width*0.8479380,size.height*0.6485000);
path_2.cubicTo(size.width*0.8479380,size.height*0.6671391,size.width*0.8409008,size.height*0.6850130,size.width*0.8283760,size.height*0.6981913);
path_2.cubicTo(size.width*0.8158512,size.height*0.7113696,size.width*0.7988636,size.height*0.7187739,size.width*0.7811488,size.height*0.7187739);
path_2.lineTo(size.width*0.3916091,size.height*0.7187739);
path_2.cubicTo(size.width*0.3738955,size.height*0.7187739,size.width*0.3569070,size.height*0.7113696,size.width*0.3443814,size.height*0.6981913);
path_2.cubicTo(size.width*0.3318558,size.height*0.6850130,size.width*0.3248190,size.height*0.6671391,size.width*0.3248190,size.height*0.6485000);
path_2.lineTo(size.width*0.3248190,size.height*0.2292970);
path_2.close();
Paint paint_2_fill = Paint()..style=PaintingStyle.fill;
paint_2_fill.shader = ui.Gradient.linear(Offset(size.width*0.3091120,size.height*0.5963478), Offset(size.width*1.064843,size.height*0.6104826), [Colors.white.withOpacity(1),Color(0xffC7C7C7).withOpacity(1)], [0,1]);
canvas.drawPath(path_2,paint_2_fill);
Path path_3 = Path();
path_3.moveTo(size.width*0.7580165,size.height*0.2822352);
path_3.lineTo(size.width*0.4149091,size.height*0.2822352);
path_3.cubicTo(size.width*0.4077640,size.height*0.2822352,size.width*0.4019715,size.height*0.2883230,size.width*0.4019715,size.height*0.2958335);
path_3.cubicTo(size.width*0.4019715,size.height*0.3033435,size.width*0.4077640,size.height*0.3094317,size.width*0.4149091,size.height*0.3094317);
path_3.lineTo(size.width*0.7580165,size.height*0.3094317);
path_3.cubicTo(size.width*0.7651612,size.height*0.3094317,size.width*0.7709545,size.height*0.3033435,size.width*0.7709545,size.height*0.2958335);
path_3.cubicTo(size.width*0.7709545,size.height*0.2883230,size.width*0.7651612,size.height*0.2822352,size.width*0.7580165,size.height*0.2822352);
path_3.close();
Paint paint_3_fill = Paint()..style=PaintingStyle.fill;
paint_3_fill.shader = ui.Gradient.linear(Offset(size.width*0.3863657,size.height*0.3083100), Offset(size.width*0.7927810,size.height*0.3083100), [Color(0xffC4C4C4).withOpacity(1),Color(0xffEEF0F2).withOpacity(1)], [0,1]);
canvas.drawPath(path_3,paint_3_fill);
Path path_4 = Path();
path_4.moveTo(size.width*0.7580165,size.height*0.3977922);
path_4.lineTo(size.width*0.4149091,size.height*0.3977922);
path_4.cubicTo(size.width*0.4077640,size.height*0.3977922,size.width*0.4019715,size.height*0.4038804,size.width*0.4019715,size.height*0.4113904);
path_4.cubicTo(size.width*0.4019715,size.height*0.4189004,size.width*0.4077640,size.height*0.4249887,size.width*0.4149091,size.height*0.4249887);
path_4.lineTo(size.width*0.7580165,size.height*0.4249887);
path_4.cubicTo(size.width*0.7651612,size.height*0.4249887,size.width*0.7709545,size.height*0.4189004,size.width*0.7709545,size.height*0.4113904);
path_4.cubicTo(size.width*0.7709545,size.height*0.4038804,size.width*0.7651612,size.height*0.3977922,size.width*0.7580165,size.height*0.3977922);
path_4.close();
Paint paint_4_fill = Paint()..style=PaintingStyle.fill;
paint_4_fill.shader = ui.Gradient.linear(Offset(size.width*0.3863657,size.height*0.4238670), Offset(size.width*0.7927810,size.height*0.4238670), [Color(0xffC4C4C4).withOpacity(1),Color(0xffEEF0F2).withOpacity(1)], [0,1]);
canvas.drawPath(path_4,paint_4_fill);
Path path_5 = Path();
path_5.moveTo(size.width*0.7580165,size.height*0.5133304);
path_5.lineTo(size.width*0.4149091,size.height*0.5133304);
path_5.cubicTo(size.width*0.4077640,size.height*0.5133304,size.width*0.4019715,size.height*0.5194217,size.width*0.4019715,size.height*0.5269304);
path_5.cubicTo(size.width*0.4019715,size.height*0.5344391,size.width*0.4077640,size.height*0.5405304,size.width*0.4149091,size.height*0.5405304);
path_5.lineTo(size.width*0.7580165,size.height*0.5405304);
path_5.cubicTo(size.width*0.7651612,size.height*0.5405304,size.width*0.7709545,size.height*0.5344391,size.width*0.7709545,size.height*0.5269304);
path_5.cubicTo(size.width*0.7709545,size.height*0.5194217,size.width*0.7651612,size.height*0.5133304,size.width*0.7580165,size.height*0.5133304);
path_5.close();
Paint paint_5_fill = Paint()..style=PaintingStyle.fill;
paint_5_fill.shader = ui.Gradient.linear(Offset(size.width*0.3863657,size.height*0.5394087), Offset(size.width*0.7927810,size.height*0.5394087), [Color(0xffC4C4C4).withOpacity(1),Color(0xffEEF0F2).withOpacity(1)], [0,1]);
canvas.drawPath(path_5,paint_5_fill);
Path path_6 = Path();
path_6.moveTo(size.width*0.7580165,size.height*0.6288913);
path_6.lineTo(size.width*0.4149091,size.height*0.6288913);
path_6.cubicTo(size.width*0.4077645,size.height*0.6288913,size.width*0.4019719,size.height*0.6349783,size.width*0.4019719,size.height*0.6424870);
path_6.cubicTo(size.width*0.4019719,size.height*0.6499957,size.width*0.4077645,size.height*0.6560870,size.width*0.4149091,size.height*0.6560870);
path_6.lineTo(size.width*0.7580165,size.height*0.6560870);
path_6.cubicTo(size.width*0.7651653,size.height*0.6560870,size.width*0.7709545,size.height*0.6499957,size.width*0.7709545,size.height*0.6424870);
path_6.cubicTo(size.width*0.7709545,size.height*0.6349783,size.width*0.7651653,size.height*0.6288913,size.width*0.7580165,size.height*0.6288913);
path_6.close();
Paint paint_6_fill = Paint()..style=PaintingStyle.fill;
paint_6_fill.shader = ui.Gradient.linear(Offset(size.width*0.3863661,size.height*0.6549652), Offset(size.width*0.7927810,size.height*0.6549652), [Color(0xffC4C4C4).withOpacity(1),Color(0xffEEF0F2).withOpacity(1)], [0,1]);
canvas.drawPath(path_6,paint_6_fill);
Path path_7 = Path();
path_7.moveTo(size.width*0.4125860,size.height*0.4885522);
path_7.lineTo(size.width*0.2298864,size.height*0.4885522);
path_7.cubicTo(size.width*0.2152087,size.height*0.4885522,size.width*0.2033099,size.height*0.5010739,size.width*0.2033099,size.height*0.5165174);
path_7.lineTo(size.width*0.2033099,size.height*0.7912783);
path_7.cubicTo(size.width*0.2033099,size.height*0.8067217,size.width*0.2152087,size.height*0.8192435,size.width*0.2298864,size.height*0.8192435);
path_7.lineTo(size.width*0.4125860,size.height*0.8192435);
path_7.cubicTo(size.width*0.4272645,size.height*0.8192435,size.width*0.4391612,size.height*0.8067217,size.width*0.4391612,size.height*0.7912783);
path_7.lineTo(size.width*0.4391612,size.height*0.5165174);
path_7.cubicTo(size.width*0.4391612,size.height*0.5010739,size.width*0.4272645,size.height*0.4885522,size.width*0.4125860,size.height*0.4885522);
path_7.close();
Paint paint_7_fill = Paint()..style=PaintingStyle.fill;
paint_7_fill.shader = ui.Gradient.linear(Offset(size.width*0.1962285,size.height*0.7365304), Offset(size.width*0.6482769,size.height*0.7755957), [Colors.white.withOpacity(1),Color(0xffE5E5EA).withOpacity(1)], [0,1]);
canvas.drawPath(path_7,paint_7_fill);
Path path_8 = Path();
path_8.moveTo(size.width*0.3921988,size.height*0.6260000);
path_8.lineTo(size.width*0.2502731,size.height*0.6260000);
path_8.cubicTo(size.width*0.2454938,size.height*0.6260000,size.width*0.2416198,size.height*0.6300783,size.width*0.2416198,size.height*0.6351087);
path_8.lineTo(size.width*0.2416198,size.height*0.6351348);
path_8.cubicTo(size.width*0.2416198,size.height*0.6401652,size.width*0.2454938,size.height*0.6442391,size.width*0.2502731,size.height*0.6442391);
path_8.lineTo(size.width*0.3921988,size.height*0.6442391);
path_8.cubicTo(size.width*0.3969777,size.height*0.6442391,size.width*0.4008521,size.height*0.6401652,size.width*0.4008521,size.height*0.6351348);
path_8.lineTo(size.width*0.4008521,size.height*0.6351087);
path_8.cubicTo(size.width*0.4008521,size.height*0.6300783,size.width*0.3969777,size.height*0.6260000,size.width*0.3921988,size.height*0.6260000);
path_8.close();
Paint paint_8_fill = Paint()..style=PaintingStyle.fill;
paint_8_fill.shader = ui.Gradient.linear(Offset(size.width*0.4193306,size.height*0.6447870), Offset(size.width*0.2278793,size.height*0.6447870), [Color(0xffEEF0F2).withOpacity(1),Color(0xff757575).withOpacity(1)], [0,1]);
canvas.drawPath(path_8,paint_8_fill);
Path path_9 = Path();
path_9.moveTo(size.width*0.3922798,size.height*0.7543478);
path_9.lineTo(size.width*0.2515740,size.height*0.7543478);
path_9.cubicTo(size.width*0.2468360,size.height*0.7543478,size.width*0.2429946,size.height*0.7582957,size.width*0.2429946,size.height*0.7631696);
path_9.lineTo(size.width*0.2429946,size.height*0.7631957);
path_9.cubicTo(size.width*0.2429946,size.height*0.7680696,size.width*0.2468360,size.height*0.7720174,size.width*0.2515740,size.height*0.7720174);
path_9.lineTo(size.width*0.3922798,size.height*0.7720174);
path_9.cubicTo(size.width*0.3970178,size.height*0.7720174,size.width*0.4008587,size.height*0.7680696,size.width*0.4008587,size.height*0.7631957);
path_9.lineTo(size.width*0.4008587,size.height*0.7631696);
path_9.cubicTo(size.width*0.4008587,size.height*0.7582957,size.width*0.3970178,size.height*0.7543478,size.width*0.3922798,size.height*0.7543478);
path_9.close();
Paint paint_9_fill = Paint()..style=PaintingStyle.fill;
paint_9_fill.shader = ui.Gradient.linear(Offset(size.width*0.4191777,size.height*0.7725435), Offset(size.width*0.2293727,size.height*0.7725435), [Color(0xffEEF0F2).withOpacity(1),Color(0xff757575).withOpacity(1)], [0,1]);
canvas.drawPath(path_9,paint_9_fill);
Path path_10 = Path();
path_10.moveTo(size.width*0.3922798,size.height*0.6871957);
path_10.lineTo(size.width*0.2515740,size.height*0.6871957);
path_10.cubicTo(size.width*0.2468360,size.height*0.6871957,size.width*0.2429946,size.height*0.6911435,size.width*0.2429946,size.height*0.6960130);
path_10.lineTo(size.width*0.2429946,size.height*0.6960435);
path_10.cubicTo(size.width*0.2429946,size.height*0.7009174,size.width*0.2468360,size.height*0.7048652,size.width*0.2515740,size.height*0.7048652);
path_10.lineTo(size.width*0.3922798,size.height*0.7048652);
path_10.cubicTo(size.width*0.3970178,size.height*0.7048652,size.width*0.4008587,size.height*0.7009174,size.width*0.4008587,size.height*0.6960435);
path_10.lineTo(size.width*0.4008587,size.height*0.6960130);
path_10.cubicTo(size.width*0.4008587,size.height*0.6911435,size.width*0.3970178,size.height*0.6871957,size.width*0.3922798,size.height*0.6871957);
path_10.close();
Paint paint_10_fill = Paint()..style=PaintingStyle.fill;
paint_10_fill.shader = ui.Gradient.linear(Offset(size.width*0.4191777,size.height*0.7053913), Offset(size.width*0.2293727,size.height*0.7053913), [Color(0xffEEF0F2).withOpacity(1),Color(0xff757575).withOpacity(1)], [0,1]);
canvas.drawPath(path_10,paint_10_fill);
Path path_11 = Path();
path_11.moveTo(size.width*0.3021657,size.height*0.5309783);
path_11.lineTo(size.width*0.2606913,size.height*0.5309783);
path_11.cubicTo(size.width*0.2515045,size.height*0.5309783,size.width*0.2440570,size.height*0.5388130,size.width*0.2440570,size.height*0.5484826);
path_11.lineTo(size.width*0.2440570,size.height*0.5605913);
path_11.cubicTo(size.width*0.2440570,size.height*0.5702565,size.width*0.2515045,size.height*0.5780913,size.width*0.2606913,size.height*0.5780913);
path_11.lineTo(size.width*0.3021657,size.height*0.5780913);
path_11.cubicTo(size.width*0.3113529,size.height*0.5780913,size.width*0.3188004,size.height*0.5702565,size.width*0.3188004,size.height*0.5605913);
path_11.lineTo(size.width*0.3188004,size.height*0.5484826);
path_11.cubicTo(size.width*0.3188004,size.height*0.5388130,size.width*0.3113529,size.height*0.5309783,size.width*0.3021657,size.height*0.5309783);
path_11.close();
Paint paint_11_fill = Paint()..style=PaintingStyle.fill;
paint_11_fill.shader = ui.Gradient.linear(Offset(size.width*0.3706289,size.height*0.5776391), Offset(size.width*0.2345975,size.height*0.5776391), [Color(0xffEEF0F2).withOpacity(1),Color(0xffC7C7C7).withOpacity(1)], [0.243799,1]);
canvas.drawPath(path_11,paint_11_fill);
Path path_12 = Path();
path_12.moveTo(size.width*0.4222355,size.height*0.2378557);
path_12.cubicTo(size.width*0.4222438,size.height*0.2218665,size.width*0.4192603,size.height*0.2060322,size.width*0.4134545,size.height*0.1912570);
path_12.cubicTo(size.width*0.4076450,size.height*0.1764822,size.width*0.3991260,size.height*0.1630565,size.width*0.3883839,size.height*0.1517474);
path_12.cubicTo(size.width*0.3776413,size.height*0.1404383,size.width*0.3648860,size.height*0.1314678,size.width*0.3508467,size.height*0.1253483);
path_12.cubicTo(size.width*0.3368074,size.height*0.1192287,size.width*0.3217599,size.height*0.1160809,size.width*0.3065636,size.height*0.1160835);
path_12.cubicTo(size.width*0.2913690,size.height*0.1160835,size.width*0.2763236,size.height*0.1192339,size.width*0.2622868,size.height*0.1253548);
path_12.cubicTo(size.width*0.2482500,size.height*0.1314752,size.width*0.2354971,size.height*0.1404465,size.width*0.2247570,size.height*0.1517552);
path_12.cubicTo(size.width*0.2140169,size.height*0.1630639,size.width*0.2054996,size.height*0.1764887,size.width*0.1996926,size.height*0.1912622);
path_12.cubicTo(size.width*0.1938855,size.height*0.2060357,size.width*0.1909025,size.height*0.2218687,size.width*0.1909136,size.height*0.2378557);
path_12.cubicTo(size.width*0.1909107,size.height*0.2538374,size.width*0.1939000,size.height*0.2696630,size.width*0.1997107,size.height*0.2844291);
path_12.cubicTo(size.width*0.2055215,size.height*0.2991948,size.width*0.2140397,size.height*0.3126117,size.width*0.2247793,size.height*0.3239135);
path_12.cubicTo(size.width*0.2355186,size.height*0.3352152,size.width*0.2482686,size.height*0.3441804,size.width*0.2623012,size.height*0.3502970);
path_12.cubicTo(size.width*0.2763339,size.height*0.3564135,size.width*0.2913744,size.height*0.3595617,size.width*0.3065636,size.height*0.3595617);
path_12.lineTo(size.width*0.5018636,size.height*0.3595617);
path_12.lineTo(size.width*0.4612727,size.height*0.3245904);
path_12.cubicTo(size.width*0.4490702,size.height*0.3140752,size.width*0.4392355,size.height*0.3008404,size.width*0.4324876,size.height*0.2858409);
path_12.cubicTo(size.width*0.4257355,size.height*0.2708417,size.width*0.4222355,size.height*0.2544522,size.width*0.4222355,size.height*0.2378557);
path_12.close();
Paint paint_12_fill = Paint()..style=PaintingStyle.fill;
paint_12_fill.shader = ui.Gradient.linear(Offset(size.width*0.2180901,size.height*0.2536087), Offset(size.width*0.4597934,size.height*0.3712452), [Color(0xffEEF0F2).withOpacity(1),Color(0xffC4C4C4).withOpacity(1)], [0,1]);
canvas.drawPath(path_12,paint_12_fill);
Path path_13 = Path();
path_13.moveTo(size.width*0.3261409,size.height*0.2768174);
path_13.cubicTo(size.width*0.3261409,size.height*0.2590252,size.width*0.3135752,size.height*0.2446022,size.width*0.2980748,size.height*0.2446022);
path_13.cubicTo(size.width*0.2825744,size.height*0.2446022,size.width*0.2700087,size.height*0.2590252,size.width*0.2700087,size.height*0.2768174);
path_13.lineTo(size.width*0.3261409,size.height*0.2768174);
path_13.close();
Paint paint_13_fill = Paint()..style=PaintingStyle.fill;
paint_13_fill.color = Color(0xff666666).withOpacity(1.0);
canvas.drawPath(path_13,paint_13_fill);
Path path_14 = Path();
path_14.moveTo(size.width*0.2598029,size.height*0.2365604);
path_14.cubicTo(size.width*0.2668488,size.height*0.2365604,size.width*0.2725603,size.height*0.2305509,size.width*0.2725603,size.height*0.2231378);
path_14.cubicTo(size.width*0.2725603,size.height*0.2157243,size.width*0.2668488,size.height*0.2097148,size.width*0.2598029,size.height*0.2097148);
path_14.cubicTo(size.width*0.2527574,size.height*0.2097148,size.width*0.2470455,size.height*0.2157243,size.width*0.2470455,size.height*0.2231378);
path_14.cubicTo(size.width*0.2470455,size.height*0.2305509,size.width*0.2527574,size.height*0.2365604,size.width*0.2598029,size.height*0.2365604);
path_14.close();
Paint paint_14_fill = Paint()..style=PaintingStyle.fill;
paint_14_fill.shader = ui.Gradient.linear(Offset(size.width*0.2598029,size.height*0.2097148), Offset(size.width*0.2598029,size.height*0.2365604), [Color(0xff979797).withOpacity(1),Color(0xffC4C4C4).withOpacity(1)], [0,1]);
canvas.drawPath(path_14,paint_14_fill);
Path path_15 = Path();
path_15.moveTo(size.width*0.3363471,size.height*0.2365604);
path_15.cubicTo(size.width*0.3433926,size.height*0.2365604,size.width*0.3491045,size.height*0.2305509,size.width*0.3491045,size.height*0.2231378);
path_15.cubicTo(size.width*0.3491045,size.height*0.2157243,size.width*0.3433926,size.height*0.2097148,size.width*0.3363471,size.height*0.2097148);
path_15.cubicTo(size.width*0.3293012,size.height*0.2097148,size.width*0.3235897,size.height*0.2157243,size.width*0.3235897,size.height*0.2231378);
path_15.cubicTo(size.width*0.3235897,size.height*0.2305509,size.width*0.3293012,size.height*0.2365604,size.width*0.3363471,size.height*0.2365604);
path_15.close();
Paint paint_15_fill = Paint()..style=PaintingStyle.fill;
paint_15_fill.shader = ui.Gradient.linear(Offset(size.width*0.3363471,size.height*0.2097148), Offset(size.width*0.3363471,size.height*0.2365604), [Color(0xff979797).withOpacity(1),Color(0xffC4C4C4).withOpacity(1)], [0,1]);
canvas.drawPath(path_15,paint_15_fill);
Path path_16 = Path();
path_16.moveTo(size.width*0.7851240,size.height*0.8525609);
path_16.cubicTo(size.width*0.7851240,size.height*0.8438826,size.width*0.7895248,size.height*0.8358565,size.width*0.7966736,size.height*0.8315174);
path_16.lineTo(size.width*0.8503512,size.height*0.7989087);
path_16.cubicTo(size.width*0.8575000,size.height*0.7945652,size.width*0.8663017,size.height*0.7945652,size.width*0.8734504,size.height*0.7989087);
path_16.lineTo(size.width*0.9271281,size.height*0.8315174);
path_16.cubicTo(size.width*0.9342727,size.height*0.8358565,size.width*0.9386777,size.height*0.8438826,size.width*0.9386777,size.height*0.8525609);
path_16.lineTo(size.width*0.9386777,size.height*0.9177826);
path_16.cubicTo(size.width*0.9386777,size.height*0.9264609,size.width*0.9342727,size.height*0.9344870,size.width*0.9271281,size.height*0.9388261);
path_16.lineTo(size.width*0.8734504,size.height*0.9714348);
path_16.cubicTo(size.width*0.8663017,size.height*0.9757783,size.width*0.8575000,size.height*0.9757783,size.width*0.8503512,size.height*0.9714348);
path_16.lineTo(size.width*0.7966736,size.height*0.9388261);
path_16.cubicTo(size.width*0.7895248,size.height*0.9344870,size.width*0.7851240,size.height*0.9264609,size.width*0.7851240,size.height*0.9177826);
path_16.lineTo(size.width*0.7851240,size.height*0.8525609);
path_16.close();
Paint paint_16_fill = Paint()..style=PaintingStyle.fill;
paint_16_fill.color = Color(0xffC7C7C7).withOpacity(1.0);
canvas.drawPath(path_16,paint_16_fill);
Path path_17 = Path();
path_17.moveTo(size.width*0.0008307934,size.height*0.3795157);
path_17.cubicTo(size.width*0.0008307934,size.height*0.3708335,size.width*0.005232934,size.height*0.3628113,size.width*0.01237901,size.height*0.3584700);
path_17.lineTo(size.width*0.06605868,size.height*0.3258609);
path_17.cubicTo(size.width*0.07320496,size.height*0.3215200,size.width*0.08200909,size.height*0.3215200,size.width*0.08915537,size.height*0.3258609);
path_17.lineTo(size.width*0.1428351,size.height*0.3584700);
path_17.cubicTo(size.width*0.1499810,size.height*0.3628109,size.width*0.1543831,size.height*0.3708335,size.width*0.1543831,size.height*0.3795157);
path_17.lineTo(size.width*0.1543831,size.height*0.4447348);
path_17.cubicTo(size.width*0.1543831,size.height*0.4534174,size.width*0.1499810,size.height*0.4614391,size.width*0.1428351,size.height*0.4657783);
path_17.lineTo(size.width*0.08915537,size.height*0.4983870);
path_17.cubicTo(size.width*0.08200909,size.height*0.5027304,size.width*0.07320496,size.height*0.5027304,size.width*0.06605868,size.height*0.4983870);
path_17.lineTo(size.width*0.01237901,size.height*0.4657783);
path_17.cubicTo(size.width*0.005232934,size.height*0.4614391,size.width*0.0008307810,size.height*0.4534174,size.width*0.0008307851,size.height*0.4447348);
path_17.lineTo(size.width*0.0008307934,size.height*0.3795157);
path_17.close();
Paint paint_17_fill = Paint()..style=PaintingStyle.fill;
paint_17_fill.color = Color(0xffEEF0F2).withOpacity(1.0);
canvas.drawPath(path_17,paint_17_fill);
Path path_18 = Path();
path_18.moveTo(size.width*0.8768636,size.height*0.1864865);
path_18.cubicTo(size.width*0.8768636,size.height*0.1820474,size.width*0.8791157,size.height*0.1779452,size.width*0.8827686,size.height*0.1757257);
path_18.lineTo(size.width*0.9102149,size.height*0.1590526);
path_18.cubicTo(size.width*0.9138678,size.height*0.1568330,size.width*0.9183719,size.height*0.1568330,size.width*0.9220248,size.height*0.1590526);
path_18.lineTo(size.width*0.9494711,size.height*0.1757257);
path_18.cubicTo(size.width*0.9531240,size.height*0.1779452,size.width*0.9553760,size.height*0.1820474,size.width*0.9553760,size.height*0.1864865);
path_18.lineTo(size.width*0.9553760,size.height*0.2198330);
path_18.cubicTo(size.width*0.9553760,size.height*0.2242722,size.width*0.9531240,size.height*0.2283743,size.width*0.9494711,size.height*0.2305939);
path_18.lineTo(size.width*0.9220248,size.height*0.2472670);
path_18.cubicTo(size.width*0.9183719,size.height*0.2494865,size.width*0.9138678,size.height*0.2494865,size.width*0.9102149,size.height*0.2472670);
path_18.lineTo(size.width*0.8827686,size.height*0.2305939);
path_18.cubicTo(size.width*0.8791157,size.height*0.2283743,size.width*0.8768636,size.height*0.2242722,size.width*0.8768636,size.height*0.2198330);
path_18.lineTo(size.width*0.8768636,size.height*0.1864865);
path_18.close();
Paint paint_18_fill = Paint()..style=PaintingStyle.fill;
paint_18_fill.color = Color(0xffEEEEEE).withOpacity(1.0);
canvas.drawPath(path_18,paint_18_fill);
}
@override
bool shouldRepaint(covariant CustomPainter oldDelegate) {
return true;
}
}

View File

@ -0,0 +1,29 @@
import 'package:flutter/material.dart';
class CustomStyleArrow extends CustomPainter {
@override
void paint(Canvas canvas, Size size) {
final Paint paint = Paint()
..color = Colors.white
..strokeWidth = 1
..style = PaintingStyle.fill;
const double triangleH = 10;
const double triangleW = 25.0;
final double width = size.width;
final double height = size.height;
final Path trianglePath = Path()
..moveTo(width / 2 - triangleW / 2, height)
..lineTo(width / 2, triangleH + height)
..lineTo(width / 2 + triangleW / 2, height)
..lineTo(width / 2 - triangleW / 2, height);
canvas.drawPath(trianglePath, paint);
final BorderRadius borderRadius = BorderRadius.circular(15);
final Rect rect = Rect.fromLTRB(0, 0, width, height);
final RRect outer = borderRadius.toRRect(rect);
canvas.drawRRect(outer, paint);
}
@override
bool shouldRepaint(CustomPainter oldDelegate) => false;
}

View File

@ -0,0 +1,33 @@
import 'package:flutter/material.dart';
class ToolTipCustomShape extends ShapeBorder {
final bool usePadding;
const ToolTipCustomShape({this.usePadding = true});
@override
EdgeInsetsGeometry get dimensions =>
EdgeInsets.only(bottom: usePadding ? 20 : 0);
@override
Path getInnerPath(Rect rect, {TextDirection? textDirection}) => Path();
@override
Path getOuterPath(Rect rect, {TextDirection? textDirection}) {
rect =
Rect.fromPoints(rect.topLeft, rect.bottomRight - const Offset(0, 20));
return Path()
..addRRect(
RRect.fromRectAndRadius(rect, Radius.circular(rect.height / 3)))
..moveTo(rect.topCenter.dx, rect.topCenter.dy)
..relativeLineTo(10, -20)
..relativeLineTo(10, 20)
..close();
}
@override
void paint(Canvas canvas, Rect rect, {TextDirection? textDirection}) {}
@override
ShapeBorder scale(double t) => this;
}

View File

@ -0,0 +1,35 @@
import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';
import 'package:she_healthy_desktop/core/theme/app_primary_theme.dart';
class LoadingWidget extends StatelessWidget {
final double? height, width;
final BoxFit? fit;
final String? loadingAssets;
const LoadingWidget({Key? key, this.height, this.width, this.fit, this.loadingAssets}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
color: Colors.black12,
borderRadius: BorderRadius.circular(8),
),
margin: const EdgeInsets.symmetric(horizontal: 16),
child: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Lottie.asset(
loadingAssets ?? 'assets/loading_pembayaran.json',
height: height ?? 160,
width: width ?? 160,
fit: fit,
),
Text('Menganalisa gambar...', style: AppTheme.subTitle,)
],
),
),
);
}
}

View File

@ -0,0 +1,153 @@
import 'package:flutter/material.dart';
import 'package:she_healthy_desktop/presentation/components/table/table_header_custom_cnn.dart';
import 'package:she_healthy_desktop/presentation/components/table/table_row_custom_cnn.dart';
import '../../../utils/tooltip_message.dart';
import '../table/table_header_custom.dart';
import '../table/table_row_custom.dart';
Widget buildCnnLayerBreast(){
return ListView.separated(
shrinkWrap: true,
itemBuilder: (ctx, index) {
if (index == 0) {
return const TableHeaderCustomCnn(
title1: 'Layer (Type)',
title2: 'Output Shape',
title3: 'Param #');
}
if (index == 1){
return const TableRowCustomCnn(
val1: "resnet50v2 (Functional)",
val2: "(None, 8, 8, 2048)",
val3: "23564800",
);
}
if (index == 2){
return const TableRowCustomCnn(
val1: 'flatten_16 (Flatten)',
val2: "(None, 131072)",
val3: "0",
);
}
if (index == 3){
return const TableRowCustomCnn(
val1: "dense_49 (Dense)",
val2: "(None, 316)",
val3: "41419068"
);
}
if (index == 4){
return const TableRowCustomCnn(
val1: "dropout_35 (Dropout)",
val2: "(None, 316)",
val3: "0",
);
}
if (index == 5){
return const TableRowCustomCnn(
val1: "dense_50 (Dense)",
val2: "(None, 4)",
val3: "1268"
);
}
return const SizedBox();
},
separatorBuilder: (ctx, index) => const Divider(color: Colors.black87),
itemCount: 6);
}
Widget buildCnnLayerCervix(){
return ListView.separated(
shrinkWrap: true,
itemBuilder: (ctx, index) {
if (index == 0) {
return const TableHeaderCustomCnn(
title1: 'Layer (Type)',
title2: 'Output Shape',
title3: 'Param #');
}
if (index == 1){
return const TableRowCustomCnn(
val1: "resnet50v2 (Functional)",
val2: "(None, 8, 8, 2048)",
val3: "23564800",
);
}
if (index == 2){
return const TableRowCustomCnn(
val1: 'flatten_10 (Flatten)',
val2: "(None, 131072)",
val3: "0",
);
}
if (index == 3){
return const TableRowCustomCnn(
val1: "dense_28 (Dense)",
val2: "(None, 141)",
val3: "18481293"
);
}
if (index == 4){
return const TableRowCustomCnn(
val1: "dropout_18 (Dropout)",
val2: "(None, 141)",
val3: "0",
);
}
if (index == 5){
return const TableRowCustomCnn(
val1: "dense_29 (Dense)",
val2: "(None, 269)",
val3: "38198"
);
}
if (index == 6){
return const TableRowCustomCnn(
val1: "dropout_19 (Dense)",
val2: "(None, 269)",
val3: "0"
);
}
if (index == 7){
return const TableRowCustomCnn(
val1: "dense_30 (Dense)",
val2: "(None, 415)",
val3: "112050"
);
}
if (index == 8){
return const TableRowCustomCnn(
val1: "dropout_20 (Dropout)",
val2: "(None, 415)",
val3: "0"
);
}
if (index == 9){
return const TableRowCustomCnn(
val1: "dense_31 (Dense)",
val2: "(None, 4)",
val3: "1664"
);
}
return const SizedBox();
},
separatorBuilder: (ctx, index) => const Divider(color: Colors.black87),
itemCount: 10);
}

View File

@ -0,0 +1,404 @@
import 'package:flutter/material.dart';
import '../../../utils/tooltip_message.dart';
import '../table/table_header_custom.dart';
import '../table/table_row_custom.dart';
Widget buildAllGLCM(List<String?> data){
print("DATA IS ${data.length}");
if (data.length <= 1){
List<String?> myList = List.filled(24, null);
data = myList;
}
return ListView.separated(
shrinkWrap: true,
itemBuilder: (ctx, index) {
if (index == 0) {
return const TableHeaderCustom(
title1: 'Properties',
title2: '0\u00B0',
title3: '45\u00B0',
title4: '90\u00B0',
title5: '135\u00B0');
}
if (index == 1){
return TableRowCustom(
property: 'Contrast',
val1: data[0],
val2: data[1],
val3: data[2],
val4: data[3],
tooltipMessage: tooltipMessageContrast,
);
}
if (index == 2){
return TableRowCustom(
property: 'Energy',
val1: data[4],
val2: data[5],
val3: data[6],
val4: data[7],
tooltipMessage: tooltipMessageEnergy,
);
}
if (index == 3){
return TableRowCustom(
property: 'Homogeneity',
val1: data[8],
val2: data[9],
val3: data[10],
val4: data[11],
tooltipMessage: tooltipMessageHomogeneity,
);
}
if (index == 4){
return TableRowCustom(
property: 'Correlation',
val1: data[12],
val2: data[13],
val3: data[14],
val4: data[15],
tooltipMessage: tooltipCorrelation,
);
}
if (index == 5){
return TableRowCustom(
property: 'ASM',
val1: data[16],
val2: data[17],
val3: data[18],
val4: data[19],
tooltipMessage: tooltipCorrelation,
);
}
if (index == 6){
return TableRowCustom(
property: 'Dissimilarity',
val1: data[20],
val2: data[21],
val3: data[22],
val4: data[23],
tooltipMessage: tooltipDissimilarity,
);
}
return SizedBox();
},
separatorBuilder: (ctx, index) => const Divider(color: Colors.black87),
itemCount: 7);
}
Widget buildPcaBreastGLCM(List<String?> data){
print("DATA IS ${data.length}");
if (data.length <= 1){
List<String?> myList = List.filled(16, null);
data = myList;
}
return ListView.separated(
shrinkWrap: true,
itemBuilder: (ctx, index) {
if (index == 0) {
return const TableHeaderCustom(
title1: 'Properties',
title2: '0\u00B0',
title3: '45\u00B0',
title4: '90\u00B0',
title5: '135\u00B0');
}
if (index == 1){
return TableRowCustom(
property: 'Contrast',
val1: data[0],
val2: data[1],
val3: data[2],
val4: data[3],
tooltipMessage: tooltipMessageContrast,
);
}
if (index == 2){
return TableRowCustom(
property: 'Energy',
val1: data[4],
val2: "-",
val3: data[5],
val4: "-",
tooltipMessage: tooltipMessageEnergy,
);
}
if (index == 3){
return TableRowCustom(
property: 'Homogeneity',
val1: data[6],
val2: data[7],
val3: data[8],
val4: data[9],
tooltipMessage: tooltipMessageHomogeneity
);
}
if (index == 4){
return TableRowCustom(
property: 'Dissimilarity',
val1: data[10],
val2: data[11],
val3: data[12],
val4: data[13],
tooltipMessage: tooltipDissimilarity,
);
}
return SizedBox();
},
separatorBuilder: (ctx, index) => const Divider(color: Colors.black87),
itemCount: 5);
}
Widget buildPcaCervixGLCM(List<String?> data){
print("DATA IS ${data.length}");
if (data.length <= 1){
List<String?> myList = List.filled(12, null);
data = myList;
}
return ListView.separated(
shrinkWrap: true,
itemBuilder: (ctx, index) {
if (index == 0) {
return const TableHeaderCustom(
title1: 'Properties',
title2: '0\u00B0',
title3: '45\u00B0',
title4: '90\u00B0',
title5: '135\u00B0');
}
if (index == 1){
return TableRowCustom(
property: 'Energy',
val1: data[0],
val2: data[1],
val3: data[2],
val4: data[3],
tooltipMessage: tooltipMessageEnergy,
);
}
if (index == 2){
return TableRowCustom(
property: 'Homogeneity',
val1: data[4],
val2: data[5],
val3: data[6],
val4: data[7],
tooltipMessage: tooltipMessageHomogeneity,
);
}
if (index == 3){
return TableRowCustom(
property: 'Dissimilarity',
val1: data[8],
val2: data[9],
val3: data[10],
val4: data[11],
tooltipMessage: tooltipDissimilarity,
);
}
if (index == 4){
return const TableRowCustom(
ignoreEmptyProperties: true,
property: '',
val1: '',
val2: '',
val3: '',
val4: '',
tooltipMessage: tooltipMessageEnergy,
);
}
return SizedBox();
},
separatorBuilder: (ctx, index) => const Divider(color: Colors.black87),
itemCount: 5);
}
Widget buildRegressionBreastGLCM(List<String?> data){
print("DATA IS ${data.length}");
if (data.length <= 1){
List<String?> myList = List.filled(20, null);
data = myList;
}
return ListView.separated(
shrinkWrap: true,
itemBuilder: (ctx, index) {
if (index == 0) {
return const TableHeaderCustom(
title1: 'Properties',
title2: '0\u00B0',
title3: '45\u00B0',
title4: '90\u00B0',
title5: '135\u00B0');
}
if (index == 1){
return TableRowCustom(
property: 'Contrast',
val1: "-",
val2: data[0],
val3: data[1],
val4: data[2],
tooltipMessage: tooltipMessageContrast,
);
}
if (index == 2){
return TableRowCustom(
property: 'Energy',
val1: "-",
val2: "-",
val3: data[3],
val4: "-",
tooltipMessage: tooltipMessageEnergy,
);
}
if (index == 3){
return TableRowCustom(
property: 'Homogeneity',
val1: "-",
val2: "-",
val3: data[4],
val4: "-",
tooltipMessage: tooltipMessageHomogeneity,
);
}
if (index == 4){
return TableRowCustom(
property: 'Correlation',
val1: "-",
val2: data[5],
val3: "-",
val4: data[6],
tooltipMessage: tooltipCorrelation,
);
}
if (index == 5){
return TableRowCustom(
property: 'Dissimilarity',
val1: "-",
val2: data[7],
val3: data[8],
val4: "-",
tooltipMessage: tooltipDissimilarity,
);
}
return SizedBox();
},
separatorBuilder: (ctx, index) => const Divider(color: Colors.black87),
itemCount: 6);
}
Widget buildRegressionCervixGLCM(List<String?> data){
print("DATA IS ${data.length}");
if (data.length <= 1){
List<String?> myList = List.filled(20, null);
data = myList;
}
return ListView.separated(
shrinkWrap: true,
itemBuilder: (ctx, index) {
if (index == 0) {
return const TableHeaderCustom(
title1: 'Properties',
title2: '0\u00B0',
title3: '45\u00B0',
title4: '90\u00B0',
title5: '135\u00B0');
}
if (index == 1){
return TableRowCustom(
property: 'Contrast',
val1: data[0],
val2: data[1],
val3: "-",
val4: data[2],
tooltipMessage: tooltipMessageContrast,
);
}
if (index == 2){
return TableRowCustom(
property: 'Energy',
val1: data[3],
val2: data[4],
val3: "-",
val4: data[5],
tooltipMessage: tooltipMessageEnergy,
);
}
if (index == 3){
return TableRowCustom(
property: 'Correlation',
val1: data[6],
val2: data[7],
val3: data[8],
val4: data[9],
tooltipMessage: tooltipCorrelation,
);
}
if (index == 4){
return TableRowCustom(
property: 'ASM',
val1: data[10],
val2: data[11],
val3: data[12],
val4: "-",
tooltipMessage: tooltipCorrelation,
);
}
if (index == 5){
return TableRowCustom(
property: 'Dissimilarity',
val1: "-",
val2: data[13],
val3: "-",
val4: "-",
tooltipMessage: tooltipDissimilarity,
);
}
return SizedBox();
},
separatorBuilder: (ctx, index) => const Divider(color: Colors.black87),
itemCount: 6);
}

View File

@ -0,0 +1,19 @@
import 'package:flutter/material.dart';
class Avatar extends StatelessWidget {
const Avatar({Key? key, required this.url}) : super(key: key);
final String url;
@override
Widget build(BuildContext context) {
return CircleAvatar(
backgroundImage: Image.network(
url,
errorBuilder: (_, __, ___) {
return Image.asset("assets/images/default_profile.png");
},
).image,
onBackgroundImageError: (_, __) {},
);
}
}

View File

@ -0,0 +1,27 @@
import 'dart:io';
import 'package:flutter/material.dart';
class ImageFullScreen extends StatelessWidget {
final File image;
final String heroTag;
const ImageFullScreen({Key? key, required this.image, required this.heroTag}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Detail Photo'),),
body: GestureDetector(
child: Center(
child: Hero(
tag: heroTag,
child: Image.file(image),
),
),
onTap: () {
Navigator.pop(context);
},
),
);
}
}

View File

@ -0,0 +1,32 @@
import 'package:flutter/material.dart';
import '../generic/loading_widget.dart';
const String defaultImage = "https://blue.kumparan.com/image/upload/fl_progressive,fl_lossy,c_fill,q_auto:best,w_640/v1578620671/wwa6sd5wyp1wxjrder5i.png";
class GenericImageNetwork extends StatelessWidget {
final String? imageUrl;
final double? width, height;
const GenericImageNetwork({Key? key, required this.imageUrl, this.width, this.height})
: super(key: key);
@override
Widget build(BuildContext context) {
return Image.network(
imageUrl ?? defaultImage,
width: width,
height: height,
fit: BoxFit.cover,
loadingBuilder: (BuildContext context, Widget child,
ImageChunkEvent? loadingProgress) {
if (loadingProgress == null) return child;
return const Center(
child: LoadingWidget(
width: 80,
height: 80,
),
);
},
);
}
}

View File

@ -0,0 +1,37 @@
import 'package:flutter/material.dart';
import '../../../core/theme/app_primary_theme.dart';
import '../dialog/dialog_choose_image.dart';
class ImagePlaceHolder extends StatelessWidget {
final Function() onTapGallery;
final double? width, height;
const ImagePlaceHolder({Key? key, required this.onTapGallery, this.width, this.height}) : super(key: key);
@override
Widget build(BuildContext context) {
return InkWell(
onTap: onTapGallery,
child: Center(
child: Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
),
child: SizedBox(
height: height ?? 100,
width: width ?? 100,
child: const Padding(
padding: EdgeInsets.all(10),
child: Icon(
Icons.camera_alt,
color: AppTheme.primaryColor,
size: 32,
),
),
),
)
),
);
}
}

View File

@ -0,0 +1,24 @@
import 'package:flutter/material.dart';
import '../../../core/theme/app_primary_theme.dart';
import '../dialog/dialog_choose_image.dart';
class ImagePlaceHolderStatic extends StatelessWidget {
final double? width, height;
const ImagePlaceHolderStatic({Key? key, this.width, this.height}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
),
child: SizedBox(
height: height ?? 100,
width: width ?? 100,
child: Image.asset('assets/placeholder.jpg', fit: BoxFit.cover,),
),
);
}
}

View File

@ -0,0 +1,51 @@
import 'dart:io';
import 'package:flutter/material.dart';
import '../dialog/dialog_choose_image.dart';
import 'image_full_screen.dart';
class ExploriaImageResult extends StatelessWidget {
final Function() onTapGallery;
final File image;
final String heroTag;
final double? width, height;
const ExploriaImageResult({Key? key, required this.onTapGallery, required this.image, required this.heroTag, this.width, this.height}) : super(key: key);
@override
Widget build(BuildContext context) {
return InkWell(
onTap: () {
chooseImage(
context: context,
onTapGallery: onTapGallery,
onTapFullScreen: () {
Navigator.pop(context);
Navigator.push(
context,
MaterialPageRoute(
builder: (c) =>
ImageFullScreen(
image: image,
heroTag: heroTag,
),
),
);
});
},
child: Hero(
tag: heroTag,
child: Center(
child: SizedBox(
height: height ?? double.infinity,
width: width ?? double.infinity,
child: ClipRRect(
borderRadius: BorderRadius.circular(12),
child: Image.file(image, fit: BoxFit.cover),
),
),
),
),
);
}
}

View File

@ -0,0 +1,86 @@
import 'package:flutter/material.dart';
class TableHeaderCustom extends StatelessWidget {
final String title1, title2, title3, title4, title5;
const TableHeaderCustom({
Key? key,
required this.title1,
required this.title2,
required this.title3,
required this.title4,
required this.title5,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return LayoutBuilder(builder: (context, constraint) {
double widthCell = constraint.maxWidth * 0.2;
return Row(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
SizedBox(
width: widthCell,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text(
title1,
textAlign: TextAlign.center,
style: const TextStyle(fontWeight: FontWeight.w600),
),
),
),
SizedBox(
width: widthCell,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text(
title2,
textAlign: TextAlign.center,
style: const TextStyle(fontWeight: FontWeight.w600),
),
),
),
SizedBox(
width: widthCell,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text(
title3,
textAlign: TextAlign.center,
style: const TextStyle(fontWeight: FontWeight.w600),
),
),
),
SizedBox(
width: widthCell,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text(
title4,
textAlign: TextAlign.center,
style: const TextStyle(fontWeight: FontWeight.w600),
),
),
),
SizedBox(
width: widthCell,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text(
title5,
textAlign: TextAlign.center,
style: const TextStyle(fontWeight: FontWeight.w600),
),
),
),
],
);
});
}
}

View File

@ -0,0 +1,60 @@
import 'package:flutter/material.dart';
class TableHeaderCustomCnn extends StatelessWidget {
final String title1, title2, title3;
const TableHeaderCustomCnn({
Key? key,
required this.title1,
required this.title2,
required this.title3,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return LayoutBuilder(builder: (context, constraint) {
double widthCell = constraint.maxWidth * 0.3;
return Row(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
SizedBox(
width: widthCell,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text(
title1,
textAlign: TextAlign.center,
style: const TextStyle(fontWeight: FontWeight.w600),
),
),
),
SizedBox(
width: widthCell,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text(
title2,
textAlign: TextAlign.center,
style: const TextStyle(fontWeight: FontWeight.w600),
),
),
),
SizedBox(
width: widthCell,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text(
title3,
textAlign: TextAlign.center,
style: const TextStyle(fontWeight: FontWeight.w600),
),
),
),
],
);
});
}
}

View File

@ -0,0 +1,72 @@
import 'package:flutter/material.dart';
import 'package:she_healthy_desktop/utils/string_ext.dart';
import '../../../core/theme/app_primary_theme.dart';
import '../../../utils/tooltip_message.dart';
import '../generic/custom_arrow.dart';
import '../generic/custom_arrow_tooltip.dart';
class TableRowCustom extends StatelessWidget {
final String? property, val1, val2, val3, val4, tooltipMessage;
final bool? ignoreEmptyProperties;
const TableRowCustom(
{Key? key,
this.property,
this.val1,
this.val2,
this.val3,
this.val4,
this.tooltipMessage,
this.ignoreEmptyProperties})
: super(key: key);
@override
Widget build(BuildContext context) {
return LayoutBuilder(
builder: (context, constraint) {
double widthCell = constraint.maxWidth * 0.2;
return Row(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
SizedBox(
width: widthCell,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 16.0),
child: Text(property ?? 'a',
style: const TextStyle(fontWeight: FontWeight.w500),
textAlign: TextAlign.center),
),
),
SizedBox(
width: widthCell,
child: Text(_getValue(val1),
textAlign: TextAlign.center)),
SizedBox(
width: widthCell,
child: Text(_getValue(val2),
textAlign: TextAlign.center)),
SizedBox(
width: widthCell,
child: Text(_getValue(val3),
textAlign: TextAlign.center)),
SizedBox(
width: widthCell,
child: Text(_getValue(val4),
textAlign: TextAlign.center)),
],
);
},
);
}
String _getValue(String? value){
if (ignoreEmptyProperties == true){
return '';
}
return value.removeChars() ?? '-';
}
}

View File

@ -0,0 +1,47 @@
import 'package:flutter/material.dart';
import 'package:she_healthy_desktop/utils/string_ext.dart';
import '../../../core/theme/app_primary_theme.dart';
import '../../../utils/tooltip_message.dart';
import '../generic/custom_arrow.dart';
import '../generic/custom_arrow_tooltip.dart';
class TableRowCustomCnn extends StatelessWidget {
final String? val1, val2, val3;
const TableRowCustomCnn(
{Key? key, this.val1, this.val2, this.val3})
: super(key: key);
@override
Widget build(BuildContext context) {
return LayoutBuilder(
builder: (context, constraint) {
double widthCell = constraint.maxWidth * 0.3;
return Row(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
SizedBox(
width: widthCell,
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 16.0),
child: Text(val1 ?? '-',
style: const TextStyle(fontWeight: FontWeight.w500),
textAlign: TextAlign.center),
),
),
SizedBox(
width: widthCell,
child:
Text(val2 ?? '-', textAlign: TextAlign.center)),
SizedBox(
width: widthCell,
child:
Text(val3 ?? '-', textAlign: TextAlign.center)),
],
);
},
);
}
}

View File

@ -0,0 +1,25 @@
import 'package:flutter/material.dart';
import '../../../core/theme/app_primary_theme.dart';
class EditFieldTextStatis extends StatelessWidget {
final String text;
const EditFieldTextStatis({Key? key, required this.text})
: super(key: key);
@override
Widget build(BuildContext context) {
return Container(
height: 50,
alignment: Alignment.centerLeft,
width: double.infinity,
margin: const EdgeInsets.symmetric(horizontal: 16),
padding: const EdgeInsets.symmetric(horizontal: 16),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
border: Border.all(color: Colors.black38)),
child: Text(text, style: AppTheme.bodyText,),
);
}
}

View File

@ -0,0 +1,39 @@
import 'package:flutter/material.dart';
import '../../../core/theme/app_primary_theme.dart';
class GenericRadiusTextContainer extends StatelessWidget {
final String text;
final double? radius, height, width, fontSize, hMargin, hPadding;
final FontWeight? fontWeight;
final Color? color;
const GenericRadiusTextContainer(
{Key? key, required this.text, this.radius, this.height, this.width, this.fontSize, this.fontWeight, this.color, this.hMargin, this.hPadding})
: super(key: key);
@override
Widget build(BuildContext context) {
return Container(
height: height ?? 50,
alignment: Alignment.centerLeft,
width: width ?? double.infinity,
margin: EdgeInsets.symmetric(horizontal: hMargin ?? 16),
padding: EdgeInsets.symmetric(horizontal: hPadding ?? 16),
decoration: BoxDecoration(
color: color ?? AppTheme.primaryColor,
borderRadius: BorderRadius.circular(radius ?? 8),
),
child: Center(
child: Text(
text,
style: AppTheme.bodyText.copyWith(
color: Colors.white,
fontSize: fontSize ?? 16,
fontWeight: fontWeight ?? FontWeight.normal
),
),
),
);
}
}

View File

@ -0,0 +1,189 @@
import 'dart:io';
import 'package:file_picker/file_picker.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:she_healthy_desktop/presentation/bloc/classification/classification_bloc.dart';
import 'package:she_healthy_desktop/presentation/bloc/classification/classification_event.dart';
import 'package:she_healthy_desktop/presentation/components/image/image_place_holder.dart';
import '../../core/theme/app_primary_theme.dart';
import '../bloc/classification/classification_state.dart';
import '../components/button/primary_button.dart';
import '../components/dialog/dialog_component.dart';
import '../components/dropdown/dropdown_value.dart';
import '../components/dropdown/generic_dropdown.dart';
import '../components/image/image_result.dart';
class CervixClassificationPage extends StatefulWidget {
final ClassificationBloc bloc;
const CervixClassificationPage({Key? key, required this.bloc})
: super(key: key);
@override
State<CervixClassificationPage> createState() =>
_CervixClassificationPageState();
}
class _CervixClassificationPageState extends State<CervixClassificationPage> {
File? image;
String selectedItem = initialDataShown;
String selectedCancerItem = initialCancerDataShown;
Widget blocListener({required Widget child}) {
return BlocListener(
bloc: widget.bloc,
listener: (ctx, state) {
if (state is ShowFailedClassification) {
Navigator.pop(context);
showFailedDialog(
context: context,
title: "Terjadi Kesalahan",
message:
'Sepertinya ada kesalahan dari server kami, coba lagi nanti!',
onTap: () {
Navigator.pop(context);
});
return;
}
},
child: child,
);
}
@override
Widget build(BuildContext context) {
return blocListener(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
margin: const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Padding(
padding: const EdgeInsets.symmetric(vertical: 12.0),
child: Text(
'Citra Histopatologi',
style: AppTheme.subTitle,
),
),
Container(
decoration: BoxDecoration(
color: Colors.grey,
borderRadius: BorderRadius.circular(8),
),
height: 300,
child: image != null
? ExploriaImageResult(
onTapGallery: () {
Navigator.pop(context);
pickImageFromGallery();
},
image: image!,
heroTag: '1b')
: ImagePlaceHolder(
onTapGallery: () {
pickImageFromGallery();
},
),
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 16),
child: Text(
'Pastikan gambar jelas.',
textAlign: TextAlign.center,
style: AppTheme.smallBodyGrey,
),
)
],
),
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
child: Text(
'Jenis Kanker',
style: AppTheme.subTitle,
),
),
GenericDropdown(
selectedItem: selectedCancerItem,
items: cancerItem,
height: 45,
width: double.infinity,
backgroundColor: Colors.white,
borderColor: Colors.transparent,
onChanged: (String? value) {
setState(() {
selectedCancerItem = value ?? initialDataShown;
});
},
),
SizedBox(height: 16,),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
child: Text(
'Jenis Klasifikasi',
style: AppTheme.subTitle,
),
),
GenericDropdown(
selectedItem: selectedItem,
items: classificationItem,
height: 45,
width: double.infinity,
backgroundColor: Colors.white,
borderColor: Colors.transparent,
onChanged: (String? value) {
setState(() {
selectedItem = value ?? initialDataShown;
});
},
),
const SizedBox(
height: 53,
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 18),
child: PrimaryButton(
width: double.infinity,
context: context,
isEnabled: true,
onPressed: () {
if (image == null) {
showWarningDialog(
context: context,
title: 'Peringatan',
message: 'Gambar tidak boleh kosong!');
return;
}
widget.bloc.add(UploadClassification(file: image!, classificationType: selectedItem, cancerType: selectedCancerItem));
},
text: 'Analisa'),
),
const SizedBox(
height: 32,
),
],
),
),
);
}
Future pickImageFromGallery() async {
print("Called gallery");
FilePickerResult? result = await FilePicker.platform.pickFiles();
setState(() {
if (result != null) {
image = File(result.files.single.path!);
} else {
// User canceled the picker
}
});
}
}

View File

@ -0,0 +1,411 @@
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:she_healthy_desktop/presentation/bloc/classification/classification_event.dart';
import 'package:she_healthy_desktop/presentation/components/generic/loading_widget.dart';
import 'package:she_healthy_desktop/presentation/components/glcm/glcm_table.dart';
import 'package:she_healthy_desktop/presentation/components/table/table_header_custom.dart';
import 'package:she_healthy_desktop/presentation/components/table/table_row_custom.dart';
import 'package:she_healthy_desktop/presentation/components/text/generic_radius_text_container.dart';
import 'package:she_healthy_desktop/utils/string_ext.dart';
import 'package:she_healthy_desktop/utils/tooltip_message.dart';
import '../../core/constant/glcm_type.dart';
import '../../core/theme/app_primary_theme.dart';
import '../bloc/classification/classification_bloc.dart';
import '../bloc/classification/classification_state.dart';
import '../components/button/primary_button.dart';
import '../components/dialog/dialog_component.dart';
import '../components/glcm/cnn_table.dart';
import '../components/image/image_place_holder_static.dart';
const noAssumption = 'Belum ada asumsi';
//Sebagai place holder
const List<String?> nullData = [];
class ClassificationDetailPage extends StatefulWidget {
final ClassificationBloc bloc;
const ClassificationDetailPage({Key? key, required this.bloc})
: super(key: key);
@override
State<ClassificationDetailPage> createState() =>
_ClassificationDetailPageState();
}
class _ClassificationDetailPageState extends State<ClassificationDetailPage> {
final List<String> _data = [];
@override
void initState() {
super.initState();
}
Widget blocBuilder() {
return BlocBuilder(
bloc: widget.bloc,
builder: (ctx, state) {
if (state is ShowSuccessClassification) {
try {
_data.clear();
_data.addAll(state.data.split(','));
} catch (e) {
return buildBody(nullData, noAssumption, null, null, null, true,
glcmType: state.glcmType);
}
return buildBody(
_data,
glcmType: state.glcmType,
state.assumption,
state.image,
state.classificationType,
state.classificationType,
pattern: state.pattern,
feature: state.feature,
time: state.time,
akurasi: state.akurasi,
false);
}
if (state is ShowLoading) {
return buildBody(nullData, noAssumption, null, null, null, true);
}
return buildBody(nullData, noAssumption, null, null, null, false);
},
);
}
Widget blocListener({required Widget child}) {
return BlocListener(
bloc: widget.bloc,
listener: (ctx, state) {
if (state is ShowFailedClassification) {
if (!mounted){
return;
}
showFailedDialog(
context: context,
title: "Terjadi Kesalahan",
message:
'Sepertinya ada kesalahan dari server kami, coba lagi nanti!',
onTap: () {
Navigator.pop(context);
});
return;
}
},
child: child,
);
}
@override
Widget build(BuildContext context) {
return blocListener(child: blocBuilder());
}
Widget buildBody(List<String?> data, String assumption, File? image,
String? method, String? cancerType, bool isLoading,
{String? glcmType, String? pattern, String? feature, String? time, String? akurasi}) {
return Stack(
children: [
Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
),
margin: const EdgeInsets.symmetric(horizontal: 16),
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
child: Container(
margin: const EdgeInsets.symmetric(
horizontal: 12, vertical: 8),
child: Column(
children: [
Padding(
padding: const EdgeInsets.symmetric(vertical: 12.0),
child: Text(
'Properties',
style: AppTheme.subTitle,
),
),
buildTableGLCM(data, glcmType ?? ""),
],
),
),
),
// Container(
// margin:
// const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
// child: Column(
// mainAxisSize: MainAxisSize.min,
// children: [
// Padding(
// padding: const EdgeInsets.symmetric(vertical: 12.0),
// ),
// Container(
// decoration: BoxDecoration(
// color: Colors.grey,
// borderRadius: BorderRadius.circular(8),
// ),
// height: 350,
// width: 250,
// child: SizedBox(
// height: double.infinity,
// width: double.infinity,
// child: ClipRRect(
// borderRadius: BorderRadius.circular(12),
// child: image == null
// ? const ImagePlaceHolderStatic()
// : Image.file(
// image,
// fit: BoxFit.cover,
// color: Colors.grey,
// colorBlendMode: BlendMode.color,
// ),
// ),
// ),
// ),
// ],
// ),
// ),
],
),
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 16, vertical: 8),
child: Text(
'Analisa',
style: AppTheme.subTitle,
),
),
const SizedBox(
height: 8,
),
buildKesimpulan(method, cancerType, pattern: pattern, feature: feature, time: time, akurasi: akurasi, assumption: assumption),
const SizedBox(
height: 16,
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 16),
child: PrimaryButton(
width: double.infinity,
color: Colors.redAccent,
context: context,
isEnabled: true,
onPressed: () {
widget.bloc.add(ResetClassification());
},
text: 'Reset'),
),
const SizedBox(
height: 32,
),
],
),
),
),
Visibility(
visible: isLoading,
child: const Positioned(
top: 0, bottom: 0, left: 0, right: 0, child: LoadingWidget()))
],
);
}
Widget buildKesimpulan(String? method, String? cancer, {String? pattern, String? feature, String? time, String? akurasi, String? assumption}) {
return Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
),
margin: const EdgeInsets.symmetric(horizontal: 8),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 10, vertical: 8),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Kelas Kanker: ',
style: AppTheme.subTitle,
),
Expanded(
child: Text(
assumption?? '',
style: AppTheme.subTitleNonBold.copyWith(
color: Colors.black87,
fontWeight: FontWeight.normal,
),
),
),
],
),
),
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 10, vertical: 8),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Pengenalan Pola: ',
style: AppTheme.subTitle,
),
Expanded(
child: Text(
pattern ?? '',
style: AppTheme.subTitleNonBold.copyWith(
color: Colors.black87,
fontWeight: FontWeight.normal,
),
),
),
],
),
),
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 10, vertical: 8),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Ketergantungan Jmlh Fitur: ',
style: AppTheme.subTitle,
),
Expanded(
child: Text(
feature ?? '',
style: AppTheme.subTitleNonBold.copyWith(
color: Colors.black87,
fontWeight: FontWeight.normal,
),
),
),
],
)
),
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 10, vertical: 8),
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Efisiensi Waktu & Akurasi : ',
style: AppTheme.subTitle,
),
Expanded(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
time ?? '',
style: AppTheme.subTitleNonBold.copyWith(
color: Colors.black87,
fontWeight: FontWeight.normal,
),
),
Text(
akurasi ?? '',
style: AppTheme.subTitleNonBold.copyWith(
color: Colors.black87,
fontWeight: FontWeight.normal,
),
),
],
)
),
],
)
),
],
),
);
}
Widget buildTableGLCM(List<String?> data, String? typeGlcm) {
if (typeGlcm == all) {
return buildAllGLCM(data);
}
if (typeGlcm == cnnBreast) {
return buildCnnLayerBreast();
}
if (typeGlcm == cnnCervix) {
return buildCnnLayerCervix();
}
if (typeGlcm == pcaBreast) {
return buildPcaBreastGLCM(data);
}
if (typeGlcm == pcaCervix) {
return buildPcaCervixGLCM(data);
}
if (typeGlcm == regressionBreast) {
return buildRegressionBreastGLCM(data);
}
if (typeGlcm == regressionCervix) {
return buildRegressionCervixGLCM(data);
}
return buildCnnLayerBreast();
}
TableRow buildDataRow(
String property, String? val1, String? val2, String? val3, String? val4) {
return TableRow(
decoration: BoxDecoration(
color: Colors.white,
border: Border.all(color: Colors.black26),
),
children: [
Padding(
padding: const EdgeInsets.symmetric(vertical: 16.0),
child: Text(property,
style: const TextStyle(fontWeight: FontWeight.w500),
textAlign: TextAlign.center),
),
Text(val1.removeChars() ?? '-', textAlign: TextAlign.center),
Text(val2.removeChars() ?? '-', textAlign: TextAlign.center),
Text(val3.removeChars() ?? '-', textAlign: TextAlign.center),
Text(val4.removeChars() ?? '-', textAlign: TextAlign.center),
]);
}
Widget rowText(String text) {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text(text, textAlign: TextAlign.center),
);
}
Widget rowTextHeading(String text) {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0),
child: Text(
text,
textAlign: TextAlign.center,
style: const TextStyle(fontWeight: FontWeight.w600),
),
);
}
}

View File

@ -0,0 +1,65 @@
import 'package:flutter/material.dart';
import 'package:she_healthy_desktop/presentation/pages/cervix_classification_page.dart';
import 'package:she_healthy_desktop/presentation/pages/classification_detail_page.dart';
import '../../core/theme/app_primary_theme.dart';
import '../bloc/classification/classification_bloc.dart';
import '../components/appbar/custom_generic_appbar.dart';
class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
@override
State<HomePage> createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
ClassificationBloc bloc = ClassificationBloc();
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppTheme.canvasColor,
body: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
const Padding(
padding: EdgeInsets.symmetric(vertical: 16.0),
child: HomeAppBar(
url: '',
),
),
Expanded(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
flex: 3,
child: Container(
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
),
margin: const EdgeInsets.only(left: 16),
child: CervixClassificationPage(
bloc: bloc,
))),
Expanded(
flex: 7,
child: ClassificationDetailPage(
bloc: bloc,
),
)
],
),
),
SizedBox(
height: 18,
),
],
),
),
);
}
}

View File

@ -0,0 +1,62 @@
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:she_healthy_desktop/presentation/pages/cervix_classification_page.dart';
import 'home_page.dart';
class SplashScreen extends StatefulWidget {
const SplashScreen({Key? key}) : super(key: key);
@override
SplashScreenState createState() => SplashScreenState();
}
class SplashScreenState extends State<SplashScreen> {
startSplashScreen() async {
var duration = const Duration(seconds: 2);
return Timer(
duration,
() {
Navigator.of(context).pushReplacement(
CupertinoPageRoute(
builder: (context) {
return const HomePage();
},
),
);
},
);
}
@override
void initState() {
super.initState();
startSplashScreen();
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
const Spacer(),
const SizedBox(
width: double.infinity,
),
Image.asset('assets/sh_logo.png'),
const Spacer(),
const Text(
'Version 0.0.1',
style:
TextStyle(color: Colors.black87, fontWeight: FontWeight.bold),
),
const SizedBox(
height: 32,
),
],
),
);
}
}

View File

@ -0,0 +1,80 @@
import '../core/data/model/item.dart';
List<Item> generateItems(int numberOfItems, List<String> data) {
return List<Item>.generate(numberOfItems, (int index) {
return Item(
headerValue: headerValueByIndex(index),
expandedValue: divideDataByIndex(index, data),
);
});
}
List<String> divideDataByIndex(int index, List<String> data) {
List<String> newData = [];
newData.clear();
switch (index) {
case 0:
newData.add(data[0]);
newData.add(data[1]);
newData.add(data[2]);
newData.add(data[3]);
break;
case 1:
newData.add(data[4]);
newData.add(data[5]);
newData.add(data[6]);
newData.add(data[7]);
break;
case 2:
newData.add(data[8]);
newData.add(data[9]);
newData.add(data[10]);
newData.add(data[11]);
break;
default:
newData.add(data[12]);
newData.add(data[13]);
newData.add(data[14]);
newData.add(data[15]);
}
return newData;
}
String headerValueByIndex(int index) {
String result = "";
switch (index) {
case 0:
result = "Contrast";
break;
case 1:
result = "Correlation";
break;
case 2:
result = "Homogeneity";
break;
default:
result = "Energy";
}
return result;
}
String angleByIndex(int index) {
String result = "";
switch (index) {
case 0:
result = "0 \u{00B0}";
break;
case 1:
result = "45 \u{00B0}";
break;
case 2:
result = "90 \u{00B0}";
break;
default:
result = "135 \u{00B0}";
}
return result;
}

3
lib/utils/default.dart Normal file
View File

@ -0,0 +1,3 @@
String mockData = "1475.3913651695882,1864.1041775115905,1971.0195275066562,2012.1958441782378,0.7562050254630301,0.6918297959752746,0.6745040726852497,0.6673399407892456,0.04565848297743679,0.03931522021631141,0.03777729203582626,0.03696095034436733,0.007516581145183461,0.00711397425209962,0.006997680313772069,0.006913386994030809,NORMAL";
List<String> listMockData = mockData.split(',');

13
lib/utils/string_ext.dart Normal file
View File

@ -0,0 +1,13 @@
extension StringConverter on String? {
String? removeChars() {
String newString = '';
if (this == null) {
return '-';
}
newString = this ?? '';
if (newString.length >= 5) {
return newString.substring(0, newString.length - 5);
}
return '-';
}
}

View File

@ -0,0 +1,12 @@
const String tooltipMessageEnergy =
'Energi (Energy) adalah karakteristik untuk melihat tingkat keseragaman tekstur.\nJika semakin tinggi nilai energi, maka tingkat homogenitas \ntekstur tinggi dan variasi intensitas dalam citra mengecil.';
const String tooltipMessageContrast =
'Kontras (Contrast) adalah representasi nilai terhadap variasi tingkat keabuan dalam matriks cooccurrence. \nApabila suatu piksel dengan piksel tetangganya mempunyai nilai intensitas yang berdekatan, \nmaka kontras tekstur sangat rendah';
const String tooltipMessageHomogeneity =
'Homogenitas (homogeneity), merupakan ukuran nilai kesamaan variasi dari intensitas citra. \nHomogenitas mengukur tingkat homogenitas atau kesamaan variasi dalam intensitas keabuan citra pada matriks co-occurrence. \nHomogenitas bernilai tinggi jika pasangan piksel mempunyai nilai keabuan yang seragam.';
const String tooltipDissimilarity = 'Dissimilarity merupakan property GLCM untuk mengukur ketidakmiripan pada suatu tekstur. \nDissimilarity akan bernilai besar apabila berbentuk tekstur acak atau tidak seragam';
const String tooltipCorrelation = 'Kolerasi (Correlation) merupakan property GLCM yang menyatakan ukuran hubungan linear dari nilai graylevel piksel ketetanggan.';

7
macos/.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
# Flutter-related
**/Flutter/ephemeral/
**/Pods/
# Xcode-related
**/dgph
**/xcuserdata/

View File

@ -0,0 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "ephemeral/Flutter-Generated.xcconfig"

View File

@ -0,0 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "ephemeral/Flutter-Generated.xcconfig"

View File

@ -0,0 +1,16 @@
//
// Generated file. Do not edit.
//
import FlutterMacOS
import Foundation
import file_selector_macos
import flutter_secure_storage_macos
import path_provider_foundation
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FileSelectorPlugin.register(with: registry.registrar(forPlugin: "FileSelectorPlugin"))
FlutterSecureStoragePlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStoragePlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
}

40
macos/Podfile Normal file
View File

@ -0,0 +1,40 @@
platform :osx, '10.14'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\""
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_macos_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_macos_build_settings(target)
end
end

35
macos/Podfile.lock Normal file
View File

@ -0,0 +1,35 @@
PODS:
- file_selector_macos (0.0.1):
- FlutterMacOS
- flutter_secure_storage_macos (6.1.1):
- FlutterMacOS
- FlutterMacOS (1.0.0)
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
DEPENDENCIES:
- file_selector_macos (from `Flutter/ephemeral/.symlinks/plugins/file_selector_macos/macos`)
- flutter_secure_storage_macos (from `Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos`)
- FlutterMacOS (from `Flutter/ephemeral`)
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
EXTERNAL SOURCES:
file_selector_macos:
:path: Flutter/ephemeral/.symlinks/plugins/file_selector_macos/macos
flutter_secure_storage_macos:
:path: Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos
FlutterMacOS:
:path: Flutter/ephemeral
path_provider_foundation:
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
SPEC CHECKSUMS:
file_selector_macos: 468fb6b81fac7c0e88d71317f3eec34c3b008ff9
flutter_secure_storage_macos: d56e2d218c1130b262bef8b4a7d64f88d7f9c9ea
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7
COCOAPODS: 1.15.2

View File

@ -0,0 +1,633 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 54;
objects = {
/* Begin PBXAggregateTarget section */
33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
isa = PBXAggregateTarget;
buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
buildPhases = (
33CC111E2044C6BF0003C045 /* ShellScript */,
);
dependencies = (
);
name = "Flutter Assemble";
productName = FLX;
};
/* End PBXAggregateTarget section */
/* Begin PBXBuildFile section */
335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
852212F9398E1B6C1C981119 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A60A9FCA75C0F1C0A8D38868 /* Pods_Runner.framework */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 33CC111A2044C6BA0003C045;
remoteInfo = FLX;
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
33CC110E2044A8840003C045 /* Bundle Framework */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
);
name = "Bundle Framework";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };
33CC10ED2044A3C60003C045 /* she_healthy_desktop.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = she_healthy_desktop.app; sourceTree = BUILT_PRODUCTS_DIR; };
33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };
33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = "<group>"; };
33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = "<group>"; };
33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = "<group>"; };
33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = "<group>"; };
33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = "<group>"; };
33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = "<group>"; };
33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = "<group>"; };
33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = "<group>"; };
5B8EA4604931092EC690A079 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
A60A9FCA75C0F1C0A8D38868 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
D0B20705EFD332A95F8261C9 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
D1385704538D75D4901F7E50 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
33CC10EA2044A3C60003C045 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
852212F9398E1B6C1C981119 /* Pods_Runner.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
1BCCD51834F03B055E9EFF4B /* Pods */ = {
isa = PBXGroup;
children = (
5B8EA4604931092EC690A079 /* Pods-Runner.debug.xcconfig */,
D1385704538D75D4901F7E50 /* Pods-Runner.release.xcconfig */,
D0B20705EFD332A95F8261C9 /* Pods-Runner.profile.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
33BA886A226E78AF003329D5 /* Configs */ = {
isa = PBXGroup;
children = (
33E5194F232828860026EE4D /* AppInfo.xcconfig */,
9740EEB21CF90195004384FC /* Debug.xcconfig */,
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
);
path = Configs;
sourceTree = "<group>";
};
33CC10E42044A3C60003C045 = {
isa = PBXGroup;
children = (
33FAB671232836740065AC1E /* Runner */,
33CEB47122A05771004F2AC0 /* Flutter */,
33CC10EE2044A3C60003C045 /* Products */,
D73912EC22F37F3D000D13A0 /* Frameworks */,
1BCCD51834F03B055E9EFF4B /* Pods */,
);
sourceTree = "<group>";
};
33CC10EE2044A3C60003C045 /* Products */ = {
isa = PBXGroup;
children = (
33CC10ED2044A3C60003C045 /* she_healthy_desktop.app */,
);
name = Products;
sourceTree = "<group>";
};
33CC11242044D66E0003C045 /* Resources */ = {
isa = PBXGroup;
children = (
33CC10F22044A3C60003C045 /* Assets.xcassets */,
33CC10F42044A3C60003C045 /* MainMenu.xib */,
33CC10F72044A3C60003C045 /* Info.plist */,
);
name = Resources;
path = ..;
sourceTree = "<group>";
};
33CEB47122A05771004F2AC0 /* Flutter */ = {
isa = PBXGroup;
children = (
335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
);
path = Flutter;
sourceTree = "<group>";
};
33FAB671232836740065AC1E /* Runner */ = {
isa = PBXGroup;
children = (
33CC10F02044A3C60003C045 /* AppDelegate.swift */,
33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
33E51913231747F40026EE4D /* DebugProfile.entitlements */,
33E51914231749380026EE4D /* Release.entitlements */,
33CC11242044D66E0003C045 /* Resources */,
33BA886A226E78AF003329D5 /* Configs */,
);
path = Runner;
sourceTree = "<group>";
};
D73912EC22F37F3D000D13A0 /* Frameworks */ = {
isa = PBXGroup;
children = (
A60A9FCA75C0F1C0A8D38868 /* Pods_Runner.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
33CC10EC2044A3C60003C045 /* Runner */ = {
isa = PBXNativeTarget;
buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
1262AF1CC0B517A3A870D749 /* [CP] Check Pods Manifest.lock */,
33CC10E92044A3C60003C045 /* Sources */,
33CC10EA2044A3C60003C045 /* Frameworks */,
33CC10EB2044A3C60003C045 /* Resources */,
33CC110E2044A8840003C045 /* Bundle Framework */,
3399D490228B24CF009A79C7 /* ShellScript */,
B758072EC913F07167B19CCF /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
dependencies = (
33CC11202044C79F0003C045 /* PBXTargetDependency */,
);
name = Runner;
productName = Runner;
productReference = 33CC10ED2044A3C60003C045 /* she_healthy_desktop.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
33CC10E52044A3C60003C045 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1300;
ORGANIZATIONNAME = "";
TargetAttributes = {
33CC10EC2044A3C60003C045 = {
CreatedOnToolsVersion = 9.2;
LastSwiftMigration = 1100;
ProvisioningStyle = Automatic;
SystemCapabilities = {
com.apple.Sandbox = {
enabled = 1;
};
};
};
33CC111A2044C6BA0003C045 = {
CreatedOnToolsVersion = 9.2;
ProvisioningStyle = Manual;
};
};
};
buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 33CC10E42044A3C60003C045;
productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
33CC10EC2044A3C60003C045 /* Runner */,
33CC111A2044C6BA0003C045 /* Flutter Assemble */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
33CC10EB2044A3C60003C045 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
1262AF1CC0B517A3A870D749 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
3399D490228B24CF009A79C7 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
};
33CC111E2044C6BF0003C045 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
Flutter/ephemeral/FlutterInputs.xcfilelist,
);
inputPaths = (
Flutter/ephemeral/tripwire,
);
outputFileListPaths = (
Flutter/ephemeral/FlutterOutputs.xcfilelist,
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
};
B758072EC913F07167B19CCF /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
33CC10E92044A3C60003C045 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
isa = PBXVariantGroup;
children = (
33CC10F52044A3C60003C045 /* Base */,
);
name = MainMenu.xib;
path = Runner;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
338D0CE9231458BD00FA5F75 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};
name = Profile;
};
338D0CEA231458BD00FA5F75 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
};
name = Profile;
};
338D0CEB231458BD00FA5F75 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Manual;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Profile;
};
33CC10F92044A3C60003C045 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
33CC10FA2044A3C60003C045 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};
name = Release;
};
33CC10FC2044A3C60003C045 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
33CC10FD2044A3C60003C045 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
};
name = Release;
};
33CC111C2044C6BA0003C045 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Manual;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
33CC111D2044C6BA0003C045 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
33CC10F92044A3C60003C045 /* Debug */,
33CC10FA2044A3C60003C045 /* Release */,
338D0CE9231458BD00FA5F75 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
33CC10FC2044A3C60003C045 /* Debug */,
33CC10FD2044A3C60003C045 /* Release */,
338D0CEA231458BD00FA5F75 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
isa = XCConfigurationList;
buildConfigurations = (
33CC111C2044C6BA0003C045 /* Debug */,
33CC111D2044C6BA0003C045 /* Release */,
338D0CEB231458BD00FA5F75 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 33CC10E52044A3C60003C045 /* Project object */;
}

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "she_healthy_desktop.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "she_healthy_desktop.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "she_healthy_desktop.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "33CC10EC2044A3C60003C045"
BuildableName = "she_healthy_desktop.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Runner.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,9 @@
import Cocoa
import FlutterMacOS
@NSApplicationMain
class AppDelegate: FlutterAppDelegate {
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}
}

View File

@ -0,0 +1,68 @@
{
"info": {
"version": 1,
"author": "xcode"
},
"images": [
{
"size": "16x16",
"idiom": "mac",
"filename": "app_icon_16.png",
"scale": "1x"
},
{
"size": "16x16",
"idiom": "mac",
"filename": "app_icon_32.png",
"scale": "2x"
},
{
"size": "32x32",
"idiom": "mac",
"filename": "app_icon_32.png",
"scale": "1x"
},
{
"size": "32x32",
"idiom": "mac",
"filename": "app_icon_64.png",
"scale": "2x"
},
{
"size": "128x128",
"idiom": "mac",
"filename": "app_icon_128.png",
"scale": "1x"
},
{
"size": "128x128",
"idiom": "mac",
"filename": "app_icon_256.png",
"scale": "2x"
},
{
"size": "256x256",
"idiom": "mac",
"filename": "app_icon_256.png",
"scale": "1x"
},
{
"size": "256x256",
"idiom": "mac",
"filename": "app_icon_512.png",
"scale": "2x"
},
{
"size": "512x512",
"idiom": "mac",
"filename": "app_icon_512.png",
"scale": "1x"
},
{
"size": "512x512",
"idiom": "mac",
"filename": "app_icon_1024.png",
"scale": "2x"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -0,0 +1,343 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
<connections>
<outlet property="delegate" destination="Voe-Tx-rLC" id="GzC-gU-4Uq"/>
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customObject id="Voe-Tx-rLC" customClass="AppDelegate" customModule="Runner" customModuleProvider="target">
<connections>
<outlet property="applicationMenu" destination="uQy-DD-JDr" id="XBo-yE-nKs"/>
<outlet property="mainFlutterWindow" destination="QvC-M9-y7g" id="gIp-Ho-8D9"/>
</connections>
</customObject>
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>
<menu title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
<items>
<menuItem title="APP_NAME" id="1Xt-HY-uBw">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="APP_NAME" systemMenu="apple" id="uQy-DD-JDr">
<items>
<menuItem title="About APP_NAME" id="5kV-Vb-QxS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontStandardAboutPanel:" target="-1" id="Exp-CZ-Vem"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="VOq-y0-SEH"/>
<menuItem title="Preferences…" keyEquivalent="," id="BOF-NM-1cW"/>
<menuItem isSeparatorItem="YES" id="wFC-TO-SCJ"/>
<menuItem title="Services" id="NMo-om-nkz">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Services" systemMenu="services" id="hz9-B4-Xy5"/>
</menuItem>
<menuItem isSeparatorItem="YES" id="4je-JR-u6R"/>
<menuItem title="Hide APP_NAME" keyEquivalent="h" id="Olw-nP-bQN">
<connections>
<action selector="hide:" target="-1" id="PnN-Uc-m68"/>
</connections>
</menuItem>
<menuItem title="Hide Others" keyEquivalent="h" id="Vdr-fp-XzO">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="hideOtherApplications:" target="-1" id="VT4-aY-XCT"/>
</connections>
</menuItem>
<menuItem title="Show All" id="Kd2-mp-pUS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="unhideAllApplications:" target="-1" id="Dhg-Le-xox"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="kCx-OE-vgT"/>
<menuItem title="Quit APP_NAME" keyEquivalent="q" id="4sb-4s-VLi">
<connections>
<action selector="terminate:" target="-1" id="Te7-pn-YzF"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Edit" id="5QF-Oa-p0T">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Edit" id="W48-6f-4Dl">
<items>
<menuItem title="Undo" keyEquivalent="z" id="dRJ-4n-Yzg">
<connections>
<action selector="undo:" target="-1" id="M6e-cu-g7V"/>
</connections>
</menuItem>
<menuItem title="Redo" keyEquivalent="Z" id="6dh-zS-Vam">
<connections>
<action selector="redo:" target="-1" id="oIA-Rs-6OD"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="WRV-NI-Exz"/>
<menuItem title="Cut" keyEquivalent="x" id="uRl-iY-unG">
<connections>
<action selector="cut:" target="-1" id="YJe-68-I9s"/>
</connections>
</menuItem>
<menuItem title="Copy" keyEquivalent="c" id="x3v-GG-iWU">
<connections>
<action selector="copy:" target="-1" id="G1f-GL-Joy"/>
</connections>
</menuItem>
<menuItem title="Paste" keyEquivalent="v" id="gVA-U4-sdL">
<connections>
<action selector="paste:" target="-1" id="UvS-8e-Qdg"/>
</connections>
</menuItem>
<menuItem title="Paste and Match Style" keyEquivalent="V" id="WeT-3V-zwk">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="pasteAsPlainText:" target="-1" id="cEh-KX-wJQ"/>
</connections>
</menuItem>
<menuItem title="Delete" id="pa3-QI-u2k">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="delete:" target="-1" id="0Mk-Ml-PaM"/>
</connections>
</menuItem>
<menuItem title="Select All" keyEquivalent="a" id="Ruw-6m-B2m">
<connections>
<action selector="selectAll:" target="-1" id="VNm-Mi-diN"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="uyl-h8-XO2"/>
<menuItem title="Find" id="4EN-yA-p0u">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Find" id="1b7-l0-nxx">
<items>
<menuItem title="Find…" tag="1" keyEquivalent="f" id="Xz5-n4-O0W">
<connections>
<action selector="performFindPanelAction:" target="-1" id="cD7-Qs-BN4"/>
</connections>
</menuItem>
<menuItem title="Find and Replace…" tag="12" keyEquivalent="f" id="YEy-JH-Tfz">
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
<connections>
<action selector="performFindPanelAction:" target="-1" id="WD3-Gg-5AJ"/>
</connections>
</menuItem>
<menuItem title="Find Next" tag="2" keyEquivalent="g" id="q09-fT-Sye">
<connections>
<action selector="performFindPanelAction:" target="-1" id="NDo-RZ-v9R"/>
</connections>
</menuItem>
<menuItem title="Find Previous" tag="3" keyEquivalent="G" id="OwM-mh-QMV">
<connections>
<action selector="performFindPanelAction:" target="-1" id="HOh-sY-3ay"/>
</connections>
</menuItem>
<menuItem title="Use Selection for Find" tag="7" keyEquivalent="e" id="buJ-ug-pKt">
<connections>
<action selector="performFindPanelAction:" target="-1" id="U76-nv-p5D"/>
</connections>
</menuItem>
<menuItem title="Jump to Selection" keyEquivalent="j" id="S0p-oC-mLd">
<connections>
<action selector="centerSelectionInVisibleArea:" target="-1" id="IOG-6D-g5B"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Spelling and Grammar" id="Dv1-io-Yv7">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Spelling" id="3IN-sU-3Bg">
<items>
<menuItem title="Show Spelling and Grammar" keyEquivalent=":" id="HFo-cy-zxI">
<connections>
<action selector="showGuessPanel:" target="-1" id="vFj-Ks-hy3"/>
</connections>
</menuItem>
<menuItem title="Check Document Now" keyEquivalent=";" id="hz2-CU-CR7">
<connections>
<action selector="checkSpelling:" target="-1" id="fz7-VC-reM"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="bNw-od-mp5"/>
<menuItem title="Check Spelling While Typing" id="rbD-Rh-wIN">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleContinuousSpellChecking:" target="-1" id="7w6-Qz-0kB"/>
</connections>
</menuItem>
<menuItem title="Check Grammar With Spelling" id="mK6-2p-4JG">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleGrammarChecking:" target="-1" id="muD-Qn-j4w"/>
</connections>
</menuItem>
<menuItem title="Correct Spelling Automatically" id="78Y-hA-62v">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticSpellingCorrection:" target="-1" id="2lM-Qi-WAP"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Substitutions" id="9ic-FL-obx">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Substitutions" id="FeM-D8-WVr">
<items>
<menuItem title="Show Substitutions" id="z6F-FW-3nz">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="orderFrontSubstitutionsPanel:" target="-1" id="oku-mr-iSq"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="gPx-C9-uUO"/>
<menuItem title="Smart Copy/Paste" id="9yt-4B-nSM">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleSmartInsertDelete:" target="-1" id="3IJ-Se-DZD"/>
</connections>
</menuItem>
<menuItem title="Smart Quotes" id="hQb-2v-fYv">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticQuoteSubstitution:" target="-1" id="ptq-xd-QOA"/>
</connections>
</menuItem>
<menuItem title="Smart Dashes" id="rgM-f4-ycn">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticDashSubstitution:" target="-1" id="oCt-pO-9gS"/>
</connections>
</menuItem>
<menuItem title="Smart Links" id="cwL-P1-jid">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticLinkDetection:" target="-1" id="Gip-E3-Fov"/>
</connections>
</menuItem>
<menuItem title="Data Detectors" id="tRr-pd-1PS">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticDataDetection:" target="-1" id="R1I-Nq-Kbl"/>
</connections>
</menuItem>
<menuItem title="Text Replacement" id="HFQ-gK-NFA">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="toggleAutomaticTextReplacement:" target="-1" id="DvP-Fe-Py6"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Transformations" id="2oI-Rn-ZJC">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Transformations" id="c8a-y6-VQd">
<items>
<menuItem title="Make Upper Case" id="vmV-6d-7jI">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="uppercaseWord:" target="-1" id="sPh-Tk-edu"/>
</connections>
</menuItem>
<menuItem title="Make Lower Case" id="d9M-CD-aMd">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="lowercaseWord:" target="-1" id="iUZ-b5-hil"/>
</connections>
</menuItem>
<menuItem title="Capitalize" id="UEZ-Bs-lqG">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="capitalizeWord:" target="-1" id="26H-TL-nsh"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Speech" id="xrE-MZ-jX0">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Speech" id="3rS-ZA-NoH">
<items>
<menuItem title="Start Speaking" id="Ynk-f8-cLZ">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="startSpeaking:" target="-1" id="654-Ng-kyl"/>
</connections>
</menuItem>
<menuItem title="Stop Speaking" id="Oyz-dy-DGm">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="stopSpeaking:" target="-1" id="dX8-6p-jy9"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="View" id="H8h-7b-M4v">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="View" id="HyV-fh-RgO">
<items>
<menuItem title="Enter Full Screen" keyEquivalent="f" id="4J7-dP-txa">
<modifierMask key="keyEquivalentModifierMask" control="YES" command="YES"/>
<connections>
<action selector="toggleFullScreen:" target="-1" id="dU3-MA-1Rq"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Window" id="aUF-d1-5bR">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Window" systemMenu="window" id="Td7-aD-5lo">
<items>
<menuItem title="Minimize" keyEquivalent="m" id="OY7-WF-poV">
<connections>
<action selector="performMiniaturize:" target="-1" id="VwT-WD-YPe"/>
</connections>
</menuItem>
<menuItem title="Zoom" id="R4o-n2-Eq4">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="performZoom:" target="-1" id="DIl-cC-cCs"/>
</connections>
</menuItem>
<menuItem isSeparatorItem="YES" id="eu3-7i-yIM"/>
<menuItem title="Bring All to Front" id="LE2-aR-0XJ">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="arrangeInFront:" target="-1" id="DRN-fu-gQh"/>
</connections>
</menuItem>
</items>
</menu>
</menuItem>
<menuItem title="Help" id="EPT-qC-fAb">
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Help" systemMenu="help" id="rJ0-wn-3NY"/>
</menuItem>
</items>
<point key="canvasLocation" x="142" y="-258"/>
</menu>
<window title="APP_NAME" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g" customClass="MainFlutterWindow" customModule="Runner" customModuleProvider="target">
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
<rect key="contentRect" x="335" y="390" width="800" height="600"/>
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1577"/>
<view key="contentView" wantsLayer="YES" id="EiT-Mj-1SZ">
<rect key="frame" x="0.0" y="0.0" width="800" height="600"/>
<autoresizingMask key="autoresizingMask"/>
</view>
</window>
</objects>
</document>

View File

@ -0,0 +1,14 @@
// Application-level settings for the Runner target.
//
// This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the
// future. If not, the values below would default to using the project name when this becomes a
// 'flutter create' template.
// The application's name. By default this is also the title of the Flutter window.
PRODUCT_NAME = SheHealthy
// The application's bundle identifier
PRODUCT_BUNDLE_IDENTIFIER = com.shehealthy.sheHealthyDesktop
// The copyright displayed in application information
PRODUCT_COPYRIGHT = Copyright © 2022 com.shehealthy. All rights reserved.

View File

@ -0,0 +1,2 @@
#include "../../Flutter/Flutter-Debug.xcconfig"
#include "Warnings.xcconfig"

View File

@ -0,0 +1,2 @@
#include "../../Flutter/Flutter-Release.xcconfig"
#include "Warnings.xcconfig"

View File

@ -0,0 +1,13 @@
WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings
GCC_WARN_UNDECLARED_SELECTOR = YES
CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
CLANG_WARN_PRAGMA_PACK = YES
CLANG_WARN_STRICT_PROTOTYPES = YES
CLANG_WARN_COMMA = YES
GCC_WARN_STRICT_SELECTOR_MATCH = YES
CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
GCC_WARN_SHADOW = YES
CLANG_WARN_UNREACHABLE_CODE = YES

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>

32
macos/Runner/Info.plist Normal file
View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
<string>$(PRODUCT_COPYRIGHT)</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>

View File

@ -0,0 +1,15 @@
import Cocoa
import FlutterMacOS
class MainFlutterWindow: NSWindow {
override func awakeFromNib() {
let flutterViewController = FlutterViewController.init()
let windowFrame = self.frame
self.contentViewController = flutterViewController
self.setFrame(windowFrame, display: true)
RegisterGeneratedPlugins(registry: flutterViewController)
super.awakeFromNib()
}
}

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>

802
pubspec.lock Normal file
View File

@ -0,0 +1,802 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
archive:
dependency: transitive
description:
name: archive
sha256: "22600aa1e926be775fa5fe7e6894e7fb3df9efda8891c73f70fb3262399a432d"
url: "https://pub.dev"
source: hosted
version: "3.4.10"
args:
dependency: transitive
description:
name: args
sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
url: "https://pub.dev"
source: hosted
version: "2.4.2"
async:
dependency: transitive
description:
name: async
sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0
url: "https://pub.dev"
source: hosted
version: "2.10.0"
bloc:
dependency: transitive
description:
name: bloc
sha256: f53a110e3b48dcd78136c10daa5d51512443cea5e1348c9d80a320095fa2db9e
url: "https://pub.dev"
source: hosted
version: "8.1.3"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
characters:
dependency: transitive
description:
name: characters
sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c
url: "https://pub.dev"
source: hosted
version: "1.2.1"
checked_yaml:
dependency: transitive
description:
name: checked_yaml
sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff
url: "https://pub.dev"
source: hosted
version: "2.0.3"
cli_util:
dependency: transitive
description:
name: cli_util
sha256: "66f86e916d285c1a93d3b79587d94bd71984a66aac4ff74e524cfa7877f1395c"
url: "https://pub.dev"
source: hosted
version: "0.3.5"
clock:
dependency: transitive
description:
name: clock
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
url: "https://pub.dev"
source: hosted
version: "1.1.1"
collection:
dependency: transitive
description:
name: collection
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
url: "https://pub.dev"
source: hosted
version: "1.17.1"
convert:
dependency: transitive
description:
name: convert
sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
url: "https://pub.dev"
source: hosted
version: "3.1.1"
cool_alert:
dependency: "direct dev"
description:
name: cool_alert
sha256: "48a0b6c04914b6dc7e8d7eaccf2adf21bace6533a3eda0aeb412e0d7a03dc00a"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
cross_file:
dependency: transitive
description:
name: cross_file
sha256: "445db18de832dba8d851e287aff8ccf169bed30d2e94243cb54c7d2f1ed2142c"
url: "https://pub.dev"
source: hosted
version: "0.3.3+6"
crypto:
dependency: transitive
description:
name: crypto
sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab
url: "https://pub.dev"
source: hosted
version: "3.0.3"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d
url: "https://pub.dev"
source: hosted
version: "1.0.6"
dartz:
dependency: "direct dev"
description:
name: dartz
sha256: e6acf34ad2e31b1eb00948692468c30ab48ac8250e0f0df661e29f12dd252168
url: "https://pub.dev"
source: hosted
version: "0.10.1"
equatable:
dependency: "direct dev"
description:
name: equatable
sha256: c2b87cb7756efdf69892005af546c56c0b5037f54d2a88269b4f347a505e3ca2
url: "https://pub.dev"
source: hosted
version: "2.0.5"
fake_async:
dependency: transitive
description:
name: fake_async
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
url: "https://pub.dev"
source: hosted
version: "1.3.1"
ffi:
dependency: transitive
description:
name: ffi
sha256: ed5337a5660c506388a9f012be0288fb38b49020ce2b45fe1f8b8323fe429f99
url: "https://pub.dev"
source: hosted
version: "2.0.2"
file_picker:
dependency: "direct main"
description:
name: file_picker
sha256: "9d6e95ec73abbd31ec54d0e0df8a961017e165aba1395e462e5b31ea0c165daf"
url: "https://pub.dev"
source: hosted
version: "5.3.1"
file_selector_linux:
dependency: transitive
description:
name: file_selector_linux
sha256: "045d372bf19b02aeb69cacf8b4009555fb5f6f0b7ad8016e5f46dd1387ddd492"
url: "https://pub.dev"
source: hosted
version: "0.9.2+1"
file_selector_macos:
dependency: transitive
description:
name: file_selector_macos
sha256: b15c3da8bd4908b9918111fa486903f5808e388b8d1c559949f584725a6594d6
url: "https://pub.dev"
source: hosted
version: "0.9.3+3"
file_selector_platform_interface:
dependency: transitive
description:
name: file_selector_platform_interface
sha256: "0aa47a725c346825a2bd396343ce63ac00bda6eff2fbc43eabe99737dede8262"
url: "https://pub.dev"
source: hosted
version: "2.6.1"
file_selector_windows:
dependency: transitive
description:
name: file_selector_windows
sha256: d3547240c20cabf205c7c7f01a50ecdbc413755814d6677f3cb366f04abcead0
url: "https://pub.dev"
source: hosted
version: "0.9.3+1"
flare_flutter:
dependency: transitive
description:
name: flare_flutter
sha256: "99d63c60f00fac81249ce6410ee015d7b125c63d8278a30da81edf3317a1f6a0"
url: "https://pub.dev"
source: hosted
version: "3.0.2"
flutter:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_bloc:
dependency: "direct dev"
description:
name: flutter_bloc
sha256: "87325da1ac757fcc4813e6b34ed5dd61169973871fdf181d6c2109dd6935ece1"
url: "https://pub.dev"
source: hosted
version: "8.1.4"
flutter_launcher_icons:
dependency: "direct main"
description:
name: flutter_launcher_icons
sha256: ce0e501cfc258907842238e4ca605e74b7fd1cdf04b3b43e86c43f3e40a1592c
url: "https://pub.dev"
source: hosted
version: "0.11.0"
flutter_lints:
dependency: "direct dev"
description:
name: flutter_lints
sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
url: "https://pub.dev"
source: hosted
version: "2.0.3"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
sha256: b068ffc46f82a55844acfa4fdbb61fad72fa2aef0905548419d97f0f95c456da
url: "https://pub.dev"
source: hosted
version: "2.0.17"
flutter_secure_storage:
dependency: "direct dev"
description:
name: flutter_secure_storage
sha256: "22dbf16f23a4bcf9d35e51be1c84ad5bb6f627750565edd70dab70f3ff5fff8f"
url: "https://pub.dev"
source: hosted
version: "8.1.0"
flutter_secure_storage_linux:
dependency: transitive
description:
name: flutter_secure_storage_linux
sha256: "3d5032e314774ee0e1a7d0a9f5e2793486f0dff2dd9ef5a23f4e3fb2a0ae6a9e"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
flutter_secure_storage_macos:
dependency: transitive
description:
name: flutter_secure_storage_macos
sha256: bd33935b4b628abd0b86c8ca20655c5b36275c3a3f5194769a7b3f37c905369c
url: "https://pub.dev"
source: hosted
version: "3.0.1"
flutter_secure_storage_platform_interface:
dependency: transitive
description:
name: flutter_secure_storage_platform_interface
sha256: "0d4d3a5dd4db28c96ae414d7ba3b8422fd735a8255642774803b2532c9a61d7e"
url: "https://pub.dev"
source: hosted
version: "1.0.2"
flutter_secure_storage_web:
dependency: transitive
description:
name: flutter_secure_storage_web
sha256: "30f84f102df9dcdaa2241866a958c2ec976902ebdaa8883fbfe525f1f2f3cf20"
url: "https://pub.dev"
source: hosted
version: "1.1.2"
flutter_secure_storage_windows:
dependency: transitive
description:
name: flutter_secure_storage_windows
sha256: "38f9501c7cb6f38961ef0e1eacacee2b2d4715c63cc83fe56449c4d3d0b47255"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
flutter_svg:
dependency: "direct main"
description:
name: flutter_svg
sha256: "6ff9fa12892ae074092de2fa6a9938fb21dbabfdaa2ff57dc697ff912fc8d4b2"
url: "https://pub.dev"
source: hosted
version: "1.1.6"
flutter_test:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.0.0"
flutter_web_plugins:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
font_awesome_flutter:
dependency: "direct main"
description:
name: font_awesome_flutter
sha256: "959ef4add147753f990b4a7c6cccb746d5792dbdc81b1cde99e62e7edb31b206"
url: "https://pub.dev"
source: hosted
version: "10.4.0"
get_it:
dependency: "direct dev"
description:
name: get_it
sha256: "529de303c739fca98cd7ece5fca500d8ff89649f1bb4b4e94fb20954abcd7468"
url: "https://pub.dev"
source: hosted
version: "7.6.0"
google_fonts:
dependency: "direct main"
description:
name: google_fonts
sha256: "6b6f10f0ce3c42f6552d1c70d2c28d764cf22bb487f50f66cca31dcd5194f4d6"
url: "https://pub.dev"
source: hosted
version: "4.0.4"
http:
dependency: "direct dev"
description:
name: http
sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2"
url: "https://pub.dev"
source: hosted
version: "0.13.6"
http_parser:
dependency: transitive
description:
name: http_parser
sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
url: "https://pub.dev"
source: hosted
version: "4.0.2"
image:
dependency: transitive
description:
name: image
sha256: "8e9d133755c3e84c73288363e6343157c383a0c6c56fc51afcc5d4d7180306d6"
url: "https://pub.dev"
source: hosted
version: "3.3.0"
image_picker:
dependency: "direct main"
description:
name: image_picker
sha256: b6951e25b795d053a6ba03af5f710069c99349de9341af95155d52665cb4607c
url: "https://pub.dev"
source: hosted
version: "0.8.9"
image_picker_android:
dependency: transitive
description:
name: image_picker_android
sha256: d6a6e78821086b0b737009b09363018309bbc6de3fd88cc5c26bc2bb44a4957f
url: "https://pub.dev"
source: hosted
version: "0.8.8+2"
image_picker_for_web:
dependency: transitive
description:
name: image_picker_for_web
sha256: "869fe8a64771b7afbc99fc433a5f7be2fea4d1cb3d7c11a48b6b579eb9c797f0"
url: "https://pub.dev"
source: hosted
version: "2.2.0"
image_picker_ios:
dependency: transitive
description:
name: image_picker_ios
sha256: "76ec722aeea419d03aa915c2c96bf5b47214b053899088c9abb4086ceecf97a7"
url: "https://pub.dev"
source: hosted
version: "0.8.8+4"
image_picker_linux:
dependency: transitive
description:
name: image_picker_linux
sha256: "4ed1d9bb36f7cd60aa6e6cd479779cc56a4cb4e4de8f49d487b1aaad831300fa"
url: "https://pub.dev"
source: hosted
version: "0.2.1+1"
image_picker_macos:
dependency: transitive
description:
name: image_picker_macos
sha256: "3f5ad1e8112a9a6111c46d0b57a7be2286a9a07fc6e1976fdf5be2bd31d4ff62"
url: "https://pub.dev"
source: hosted
version: "0.2.1+1"
image_picker_platform_interface:
dependency: transitive
description:
name: image_picker_platform_interface
sha256: ed9b00e63977c93b0d2d2b343685bed9c324534ba5abafbb3dfbd6a780b1b514
url: "https://pub.dev"
source: hosted
version: "2.9.1"
image_picker_windows:
dependency: transitive
description:
name: image_picker_windows
sha256: "6ad07afc4eb1bc25f3a01084d28520496c4a3bb0cb13685435838167c9dcedeb"
url: "https://pub.dev"
source: hosted
version: "0.2.1+1"
intl:
dependency: "direct main"
description:
name: intl
sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d"
url: "https://pub.dev"
source: hosted
version: "0.18.1"
js:
dependency: transitive
description:
name: js
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
url: "https://pub.dev"
source: hosted
version: "0.6.7"
json_annotation:
dependency: transitive
description:
name: json_annotation
sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467
url: "https://pub.dev"
source: hosted
version: "4.8.1"
lints:
dependency: transitive
description:
name: lints
sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593"
url: "https://pub.dev"
source: hosted
version: "2.0.1"
logger:
dependency: "direct dev"
description:
name: logger
sha256: "6bbb9d6f7056729537a4309bda2e74e18e5d9f14302489cc1e93f33b3fe32cac"
url: "https://pub.dev"
source: hosted
version: "2.0.2+1"
lottie:
dependency: "direct dev"
description:
name: lottie
sha256: "893da7a0022ec2fcaa616f34529a081f617e86cc501105b856e5a3184c58c7c2"
url: "https://pub.dev"
source: hosted
version: "1.4.3"
matcher:
dependency: transitive
description:
name: matcher
sha256: c94db23593b89766cda57aab9ac311e3616cf87c6fa4e9749df032f66f30dcb8
url: "https://pub.dev"
source: hosted
version: "0.12.14"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
url: "https://pub.dev"
source: hosted
version: "0.2.0"
meta:
dependency: transitive
description:
name: meta
sha256: "12307e7f0605ce3da64cf0db90e5fcab0869f3ca03f76be6bb2991ce0a55e82b"
url: "https://pub.dev"
source: hosted
version: "1.9.0"
mime:
dependency: transitive
description:
name: mime
sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e
url: "https://pub.dev"
source: hosted
version: "1.0.4"
nested:
dependency: transitive
description:
name: nested
sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20"
url: "https://pub.dev"
source: hosted
version: "1.0.0"
path:
dependency: transitive
description:
name: path
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
url: "https://pub.dev"
source: hosted
version: "1.8.3"
path_drawing:
dependency: transitive
description:
name: path_drawing
sha256: bbb1934c0cbb03091af082a6389ca2080345291ef07a5fa6d6e078ba8682f977
url: "https://pub.dev"
source: hosted
version: "1.0.1"
path_parsing:
dependency: transitive
description:
name: path_parsing
sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf
url: "https://pub.dev"
source: hosted
version: "1.0.1"
path_provider:
dependency: transitive
description:
name: path_provider
sha256: a1aa8aaa2542a6bc57e381f132af822420216c80d4781f7aa085ca3229208aaa
url: "https://pub.dev"
source: hosted
version: "2.1.1"
path_provider_android:
dependency: transitive
description:
name: path_provider_android
sha256: e595b98692943b4881b219f0a9e3945118d3c16bd7e2813f98ec6e532d905f72
url: "https://pub.dev"
source: hosted
version: "2.2.1"
path_provider_foundation:
dependency: transitive
description:
name: path_provider_foundation
sha256: "19314d595120f82aca0ba62787d58dde2cc6b5df7d2f0daf72489e38d1b57f2d"
url: "https://pub.dev"
source: hosted
version: "2.3.1"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279
url: "https://pub.dev"
source: hosted
version: "2.2.1"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
sha256: "94b1e0dd80970c1ce43d5d4e050a9918fce4f4a775e6142424c30a29a363265c"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
path_provider_windows:
dependency: transitive
description:
name: path_provider_windows
sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170"
url: "https://pub.dev"
source: hosted
version: "2.2.1"
permission_handler:
dependency: "direct dev"
description:
name: permission_handler
sha256: bc56bfe9d3f44c3c612d8d393bd9b174eb796d706759f9b495ac254e4294baa5
url: "https://pub.dev"
source: hosted
version: "10.4.5"
permission_handler_android:
dependency: transitive
description:
name: permission_handler_android
sha256: "59c6322171c29df93a22d150ad95f3aa19ed86542eaec409ab2691b8f35f9a47"
url: "https://pub.dev"
source: hosted
version: "10.3.6"
permission_handler_apple:
dependency: transitive
description:
name: permission_handler_apple
sha256: "99e220bce3f8877c78e4ace901082fb29fa1b4ebde529ad0932d8d664b34f3f5"
url: "https://pub.dev"
source: hosted
version: "9.1.4"
permission_handler_platform_interface:
dependency: transitive
description:
name: permission_handler_platform_interface
sha256: "6760eb5ef34589224771010805bea6054ad28453906936f843a8cc4d3a55c4a4"
url: "https://pub.dev"
source: hosted
version: "3.12.0"
permission_handler_windows:
dependency: transitive
description:
name: permission_handler_windows
sha256: cc074aace208760f1eee6aa4fae766b45d947df85bc831cde77009cdb4720098
url: "https://pub.dev"
source: hosted
version: "0.1.3"
petitparser:
dependency: transitive
description:
name: petitparser
sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750
url: "https://pub.dev"
source: hosted
version: "5.4.0"
platform:
dependency: transitive
description:
name: platform
sha256: "0a279f0707af40c890e80b1e9df8bb761694c074ba7e1d4ab1bc4b728e200b59"
url: "https://pub.dev"
source: hosted
version: "3.1.3"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
sha256: da3fdfeccc4d4ff2da8f8c556704c08f912542c5fb3cf2233ed75372384a034d
url: "https://pub.dev"
source: hosted
version: "2.1.6"
pointycastle:
dependency: transitive
description:
name: pointycastle
sha256: "7c1e5f0d23c9016c5bbd8b1473d0d3fb3fc851b876046039509e18e0c7485f2c"
url: "https://pub.dev"
source: hosted
version: "3.7.3"
provider:
dependency: "direct dev"
description:
name: provider
sha256: c8a055ee5ce3fd98d6fc872478b03823ffdb448699c6ebdbbc71d59b596fd48c
url: "https://pub.dev"
source: hosted
version: "6.1.2"
qr:
dependency: transitive
description:
name: qr
sha256: "64957a3930367bf97cc211a5af99551d630f2f4625e38af10edd6b19131b64b3"
url: "https://pub.dev"
source: hosted
version: "3.0.1"
qr_code_scanner:
dependency: "direct dev"
description:
name: qr_code_scanner
sha256: f23b68d893505a424f0bd2e324ebea71ed88465d572d26bb8d2e78a4749591fd
url: "https://pub.dev"
source: hosted
version: "1.0.1"
qr_flutter:
dependency: "direct main"
description:
name: qr_flutter
sha256: "5095f0fc6e3f71d08adef8feccc8cea4f12eec18a2e31c2e8d82cb6019f4b097"
url: "https://pub.dev"
source: hosted
version: "4.1.0"
sky_engine:
dependency: transitive
description: flutter
source: sdk
version: "0.0.99"
source_span:
dependency: transitive
description:
name: source_span
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
url: "https://pub.dev"
source: hosted
version: "1.9.1"
stack_trace:
dependency: transitive
description:
name: stack_trace
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
url: "https://pub.dev"
source: hosted
version: "1.11.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
string_scanner:
dependency: transitive
description:
name: string_scanner
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
url: "https://pub.dev"
source: hosted
version: "1.2.0"
syncfusion_flutter_charts:
dependency: "direct main"
description:
name: syncfusion_flutter_charts
sha256: "0222ac9d8cb6c671f014effe9bd5c0aef35eadb16471355345ba87cc0ac007b3"
url: "https://pub.dev"
source: hosted
version: "20.4.54"
syncfusion_flutter_core:
dependency: transitive
description:
name: syncfusion_flutter_core
sha256: "3979f0b1c5a97422cadae52d476c21fa3e0fb671ef51de6cae1d646d8b99fe1f"
url: "https://pub.dev"
source: hosted
version: "20.4.54"
term_glyph:
dependency: transitive
description:
name: term_glyph
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
url: "https://pub.dev"
source: hosted
version: "1.2.1"
test_api:
dependency: transitive
description:
name: test_api
sha256: "6182294da5abf431177fccc1ee02401f6df30f766bc6130a0852c6b6d7ee6b2d"
url: "https://pub.dev"
source: hosted
version: "0.4.18"
typed_data:
dependency: transitive
description:
name: typed_data
sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
url: "https://pub.dev"
source: hosted
version: "1.3.2"
vector_math:
dependency: transitive
description:
name: vector_math
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
url: "https://pub.dev"
source: hosted
version: "2.1.4"
win32:
dependency: transitive
description:
name: win32
sha256: "5a751eddf9db89b3e5f9d50c20ab8612296e4e8db69009788d6c8b060a84191c"
url: "https://pub.dev"
source: hosted
version: "4.1.4"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
sha256: "589ada45ba9e39405c198fe34eb0f607cddb2108527e658136120892beac46d2"
url: "https://pub.dev"
source: hosted
version: "1.0.3"
xml:
dependency: transitive
description:
name: xml
sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84"
url: "https://pub.dev"
source: hosted
version: "6.3.0"
yaml:
dependency: transitive
description:
name: yaml
sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5"
url: "https://pub.dev"
source: hosted
version: "3.1.2"
sdks:
dart: ">=2.19.6 <4.0.0"
flutter: ">=3.7.0"

122
pubspec.yaml Normal file
View File

@ -0,0 +1,122 @@
name: she_healthy_desktop
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1
environment:
sdk: '>=2.18.2 <3.0.0'
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
google_fonts:
font_awesome_flutter:
intl:
qr_flutter: ^4.0.0
flutter_svg: ^1.0.0
syncfusion_flutter_charts: ^20.3.50
file_picker:
image_picker: ^0.8.4
flutter_launcher_icons: ^0.11.0
dev_dependencies:
flutter_test:
sdk: flutter
flutter_bloc: ^8.0.1
lottie: ^1.2.1
http: ^0.13.3
logger:
flutter_secure_storage:
cool_alert: ^1.1.0
qr_code_scanner: ^1.0.1
permission_handler: ^10.2.0
provider:
get_it: ^7.1.3
dartz: ^0.10.1
equatable: ^2.0.5
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^2.0.0
flutter_icons:
macos:
generate: true
image_path: "assets/shehealthy_launcher.png"
image_path: "assets/shehealthy_launcher.png"
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter packages.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
assets:
- assets/
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages

30
test/widget_test.dart Normal file
View File

@ -0,0 +1,30 @@
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:she_healthy_desktop/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
}

17
windows/.gitignore vendored Normal file
View File

@ -0,0 +1,17 @@
flutter/ephemeral/
# Visual Studio user-specific files.
*.suo
*.user
*.userosscache
*.sln.docstates
# Visual Studio build-related files.
x64/
x86/
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

101
windows/CMakeLists.txt Normal file
View File

@ -0,0 +1,101 @@
# Project-level configuration.
cmake_minimum_required(VERSION 3.14)
project(she_healthy_desktop LANGUAGES CXX)
# The name of the executable created for the application. Change this to change
# the on-disk name of your application.
set(BINARY_NAME "she_healthy_desktop")
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.
cmake_policy(SET CMP0063 NEW)
# Define build configuration option.
get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(IS_MULTICONFIG)
set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release"
CACHE STRING "" FORCE)
else()
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
set(CMAKE_BUILD_TYPE "Debug" CACHE
STRING "Flutter build mode" FORCE)
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
"Debug" "Profile" "Release")
endif()
endif()
# Define settings for the Profile build mode.
set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}")
set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}")
set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}")
# Use Unicode for all projects.
add_definitions(-DUNICODE -D_UNICODE)
# Compilation settings that should be applied to most targets.
#
# Be cautious about adding new options here, as plugins use this function by
# default. In most cases, you should add new options to specific targets instead
# of modifying this function.
function(APPLY_STANDARD_SETTINGS TARGET)
target_compile_features(${TARGET} PUBLIC cxx_std_17)
target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100")
target_compile_options(${TARGET} PRIVATE /EHsc)
target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0")
target_compile_definitions(${TARGET} PRIVATE "$<$<CONFIG:Debug>:_DEBUG>")
endfunction()
# Flutter library and tool build rules.
set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
add_subdirectory(${FLUTTER_MANAGED_DIR})
# Application build; see runner/CMakeLists.txt.
add_subdirectory("runner")
# Generated plugin build rules, which manage building the plugins and adding
# them to the application.
include(flutter/generated_plugins.cmake)
# === Installation ===
# Support files are copied into place next to the executable, so that it can
# run in place. This is done instead of making a separate bundle (as on Linux)
# so that building and running from within Visual Studio will work.
set(BUILD_BUNDLE_DIR "$<TARGET_FILE_DIR:${BINARY_NAME}>")
# Make the "install" step default, as it's required to run.
set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
endif()
set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}")
install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
COMPONENT Runtime)
install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
COMPONENT Runtime)
install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)
if(PLUGIN_BUNDLED_LIBRARIES)
install(FILES "${PLUGIN_BUNDLED_LIBRARIES}"
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
COMPONENT Runtime)
endif()
# Fully re-copy the assets directory on each build to avoid having stale files
# from a previous install.
set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
install(CODE "
file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
" COMPONENT Runtime)
install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
# Install the AOT library on non-Debug builds only.
install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
CONFIGURATIONS Profile;Release
COMPONENT Runtime)

View File

@ -0,0 +1,104 @@
# This file controls Flutter-level build steps. It should not be edited.
cmake_minimum_required(VERSION 3.14)
set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
# Configuration provided via flutter tool.
include(${EPHEMERAL_DIR}/generated_config.cmake)
# TODO: Move the rest of this into files in ephemeral. See
# https://github.com/flutter/flutter/issues/57146.
set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
# === Flutter Library ===
set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
# Published to parent scope for install step.
set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE)
list(APPEND FLUTTER_LIBRARY_HEADERS
"flutter_export.h"
"flutter_windows.h"
"flutter_messenger.h"
"flutter_plugin_registrar.h"
"flutter_texture_registrar.h"
)
list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/")
add_library(flutter INTERFACE)
target_include_directories(flutter INTERFACE
"${EPHEMERAL_DIR}"
)
target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib")
add_dependencies(flutter flutter_assemble)
# === Wrapper ===
list(APPEND CPP_WRAPPER_SOURCES_CORE
"core_implementations.cc"
"standard_codec.cc"
)
list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/")
list(APPEND CPP_WRAPPER_SOURCES_PLUGIN
"plugin_registrar.cc"
)
list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/")
list(APPEND CPP_WRAPPER_SOURCES_APP
"flutter_engine.cc"
"flutter_view_controller.cc"
)
list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/")
# Wrapper sources needed for a plugin.
add_library(flutter_wrapper_plugin STATIC
${CPP_WRAPPER_SOURCES_CORE}
${CPP_WRAPPER_SOURCES_PLUGIN}
)
apply_standard_settings(flutter_wrapper_plugin)
set_target_properties(flutter_wrapper_plugin PROPERTIES
POSITION_INDEPENDENT_CODE ON)
set_target_properties(flutter_wrapper_plugin PROPERTIES
CXX_VISIBILITY_PRESET hidden)
target_link_libraries(flutter_wrapper_plugin PUBLIC flutter)
target_include_directories(flutter_wrapper_plugin PUBLIC
"${WRAPPER_ROOT}/include"
)
add_dependencies(flutter_wrapper_plugin flutter_assemble)
# Wrapper sources needed for the runner.
add_library(flutter_wrapper_app STATIC
${CPP_WRAPPER_SOURCES_CORE}
${CPP_WRAPPER_SOURCES_APP}
)
apply_standard_settings(flutter_wrapper_app)
target_link_libraries(flutter_wrapper_app PUBLIC flutter)
target_include_directories(flutter_wrapper_app PUBLIC
"${WRAPPER_ROOT}/include"
)
add_dependencies(flutter_wrapper_app flutter_assemble)
# === Flutter tool backend ===
# _phony_ is a non-existent file to force this command to run every time,
# since currently there's no way to get a full input/output list from the
# flutter tool.
set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_")
set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE)
add_custom_command(
OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN}
${CPP_WRAPPER_SOURCES_APP}
${PHONY_OUTPUT}
COMMAND ${CMAKE_COMMAND} -E env
${FLUTTER_TOOL_ENVIRONMENT}
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
windows-x64 $<CONFIG>
VERBATIM
)
add_custom_target(flutter_assemble DEPENDS
"${FLUTTER_LIBRARY}"
${FLUTTER_LIBRARY_HEADERS}
${CPP_WRAPPER_SOURCES_CORE}
${CPP_WRAPPER_SOURCES_PLUGIN}
${CPP_WRAPPER_SOURCES_APP}
)

View File

@ -0,0 +1,20 @@
//
// Generated file. Do not edit.
//
// clang-format off
#include "generated_plugin_registrant.h"
#include <file_selector_windows/file_selector_windows.h>
#include <flutter_secure_storage_windows/flutter_secure_storage_windows_plugin.h>
#include <permission_handler_windows/permission_handler_windows_plugin.h>
void RegisterPlugins(flutter::PluginRegistry* registry) {
FileSelectorWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FileSelectorWindows"));
FlutterSecureStorageWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("FlutterSecureStorageWindowsPlugin"));
PermissionHandlerWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin"));
}

View File

@ -0,0 +1,15 @@
//
// Generated file. Do not edit.
//
// clang-format off
#ifndef GENERATED_PLUGIN_REGISTRANT_
#define GENERATED_PLUGIN_REGISTRANT_
#include <flutter/plugin_registry.h>
// Registers Flutter plugins.
void RegisterPlugins(flutter::PluginRegistry* registry);
#endif // GENERATED_PLUGIN_REGISTRANT_

View File

@ -0,0 +1,26 @@
#
# Generated file, do not edit.
#
list(APPEND FLUTTER_PLUGIN_LIST
file_selector_windows
flutter_secure_storage_windows
permission_handler_windows
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST
)
set(PLUGIN_BUNDLED_LIBRARIES)
foreach(plugin ${FLUTTER_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${plugin}/windows 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}/windows plugins/${ffi_plugin})
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
endforeach(ffi_plugin)

View File

@ -0,0 +1,39 @@
cmake_minimum_required(VERSION 3.14)
project(runner LANGUAGES CXX)
# Define the application target. To change its name, change BINARY_NAME in the
# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer
# work.
#
# Any new source files that you add to the application should be added here.
add_executable(${BINARY_NAME} WIN32
"flutter_window.cpp"
"main.cpp"
"utils.cpp"
"win32_window.cpp"
"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
"Runner.rc"
"runner.exe.manifest"
)
# Apply the standard set of build settings. This can be removed for applications
# that need different build settings.
apply_standard_settings(${BINARY_NAME})
# Add preprocessor definitions for the build version.
target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"")
target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}")
target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}")
target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}")
target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}")
# Disable Windows macros that collide with C++ standard library functions.
target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX")
# Add dependency libraries and include directories. Add any application-specific
# dependencies here.
target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app)
target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
# Run the Flutter tool portions of the build. This must not be removed.
add_dependencies(${BINARY_NAME} flutter_assemble)

121
windows/runner/Runner.rc Normal file
View File

@ -0,0 +1,121 @@
// Microsoft Visual C++ generated resource script.
//
#pragma code_page(65001)
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "winres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (United States) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#include ""winres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_APP_ICON ICON "resources\\app_icon.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD)
#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD
#else
#define VERSION_AS_NUMBER 1,0,0,0
#endif
#if defined(FLUTTER_VERSION)
#define VERSION_AS_STRING FLUTTER_VERSION
#else
#define VERSION_AS_STRING "1.0.0"
#endif
VS_VERSION_INFO VERSIONINFO
FILEVERSION VERSION_AS_NUMBER
PRODUCTVERSION VERSION_AS_NUMBER
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#ifdef _DEBUG
FILEFLAGS VS_FF_DEBUG
#else
FILEFLAGS 0x0L
#endif
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "com.shehealthy" "\0"
VALUE "FileDescription", "she_healthy_desktop" "\0"
VALUE "FileVersion", VERSION_AS_STRING "\0"
VALUE "InternalName", "she_healthy_desktop" "\0"
VALUE "LegalCopyright", "Copyright (C) 2022 com.shehealthy. All rights reserved." "\0"
VALUE "OriginalFilename", "she_healthy_desktop.exe" "\0"
VALUE "ProductName", "she_healthy_desktop" "\0"
VALUE "ProductVersion", VERSION_AS_STRING "\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED

View File

@ -0,0 +1,61 @@
#include "flutter_window.h"
#include <optional>
#include "flutter/generated_plugin_registrant.h"
FlutterWindow::FlutterWindow(const flutter::DartProject& project)
: project_(project) {}
FlutterWindow::~FlutterWindow() {}
bool FlutterWindow::OnCreate() {
if (!Win32Window::OnCreate()) {
return false;
}
RECT frame = GetClientArea();
// The size here must match the window dimensions to avoid unnecessary surface
// creation / destruction in the startup path.
flutter_controller_ = std::make_unique<flutter::FlutterViewController>(
frame.right - frame.left, frame.bottom - frame.top, project_);
// Ensure that basic setup of the controller was successful.
if (!flutter_controller_->engine() || !flutter_controller_->view()) {
return false;
}
RegisterPlugins(flutter_controller_->engine());
SetChildContent(flutter_controller_->view()->GetNativeWindow());
return true;
}
void FlutterWindow::OnDestroy() {
if (flutter_controller_) {
flutter_controller_ = nullptr;
}
Win32Window::OnDestroy();
}
LRESULT
FlutterWindow::MessageHandler(HWND hwnd, UINT const message,
WPARAM const wparam,
LPARAM const lparam) noexcept {
// Give Flutter, including plugins, an opportunity to handle window messages.
if (flutter_controller_) {
std::optional<LRESULT> result =
flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam,
lparam);
if (result) {
return *result;
}
}
switch (message) {
case WM_FONTCHANGE:
flutter_controller_->engine()->ReloadSystemFonts();
break;
}
return Win32Window::MessageHandler(hwnd, message, wparam, lparam);
}

View File

@ -0,0 +1,33 @@
#ifndef RUNNER_FLUTTER_WINDOW_H_
#define RUNNER_FLUTTER_WINDOW_H_
#include <flutter/dart_project.h>
#include <flutter/flutter_view_controller.h>
#include <memory>
#include "win32_window.h"
// A window that does nothing but host a Flutter view.
class FlutterWindow : public Win32Window {
public:
// Creates a new FlutterWindow hosting a Flutter view running |project|.
explicit FlutterWindow(const flutter::DartProject& project);
virtual ~FlutterWindow();
protected:
// Win32Window:
bool OnCreate() override;
void OnDestroy() override;
LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam,
LPARAM const lparam) noexcept override;
private:
// The project to run.
flutter::DartProject project_;
// The Flutter instance hosted by this window.
std::unique_ptr<flutter::FlutterViewController> flutter_controller_;
};
#endif // RUNNER_FLUTTER_WINDOW_H_

43
windows/runner/main.cpp Normal file
View File

@ -0,0 +1,43 @@
#include <flutter/dart_project.h>
#include <flutter/flutter_view_controller.h>
#include <windows.h>
#include "flutter_window.h"
#include "utils.h"
int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
_In_ wchar_t *command_line, _In_ int show_command) {
// Attach to console when present (e.g., 'flutter run') or create a
// new console when running with a debugger.
if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) {
CreateAndAttachConsole();
}
// Initialize COM, so that it is available for use in the library and/or
// plugins.
::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
flutter::DartProject project(L"data");
std::vector<std::string> command_line_arguments =
GetCommandLineArguments();
project.set_dart_entrypoint_arguments(std::move(command_line_arguments));
FlutterWindow window(project);
Win32Window::Point origin(10, 10);
Win32Window::Size size(1280, 720);
if (!window.CreateAndShow(L"she_healthy_desktop", origin, size)) {
return EXIT_FAILURE;
}
window.SetQuitOnClose(true);
::MSG msg;
while (::GetMessage(&msg, nullptr, 0, 0)) {
::TranslateMessage(&msg);
::DispatchMessage(&msg);
}
::CoUninitialize();
return EXIT_SUCCESS;
}

16
windows/runner/resource.h Normal file
View File

@ -0,0 +1,16 @@
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Runner.rc
//
#define IDI_APP_ICON 101
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 102
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
</windowsSettings>
</application>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Windows 10 and Windows 11 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
<!-- Windows 8.1 -->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<!-- Windows 8 -->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
<!-- Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
</application>
</compatibility>
</assembly>

Some files were not shown because too many files have changed in this diff Show More