feature: add flower

This commit is contained in:
2023-08-02 23:45:04 +08:00
parent 155ca9ad9c
commit 31cfaee4f0
55 changed files with 2416 additions and 308 deletions

View File

@ -0,0 +1,16 @@
using Microsoft.Maui.Handlers;
using Microsoft.Maui.Platform;
namespace Blahblah.FlowerApp.Platforms.iOS.Handlers;
class OptionDatePickerHandler : DatePickerHandler
{
protected override void ConnectHandler(MauiDatePicker platformView)
{
base.ConnectHandler(platformView);
platformView.BackgroundColor = UIKit.UIColor.Clear;
platformView.Layer.BorderWidth = 0;
platformView.BorderStyle = UIKit.UITextBorderStyle.None;
}
}

View File

@ -0,0 +1,16 @@
using Microsoft.Maui.Handlers;
using Microsoft.Maui.Platform;
namespace Blahblah.FlowerApp.Platforms.iOS.Handlers;
class OptionEntryHandler : EntryHandler
{
protected override void ConnectHandler(MauiTextField platformView)
{
base.ConnectHandler(platformView);
platformView.BackgroundColor = UIKit.UIColor.Clear;
platformView.Layer.BorderWidth = 0;
platformView.BorderStyle = UIKit.UITextBorderStyle.None;
}
}

View File

@ -0,0 +1,16 @@
using Microsoft.Maui.Handlers;
using Microsoft.Maui.Platform;
namespace Blahblah.FlowerApp.Platforms.iOS.Handlers;
class OptionTimePickerHandler : TimePickerHandler
{
protected override void ConnectHandler(MauiTimePicker platformView)
{
base.ConnectHandler(platformView);
platformView.BackgroundColor = UIKit.UIColor.Clear;
platformView.Layer.BorderWidth = 0;
platformView.BorderStyle = UIKit.UITextBorderStyle.None;
}
}

View File

@ -1,32 +1,56 @@
<?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>LSRequiresIPhoneOS</key>
<true/>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>arm64</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/appicon.appiconset</string>
</dict>
<dict>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>arm64</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/appicon.appiconset</string>
<key>CFBundleDevelopmentRegion</key>
<string>zh_CN</string>
<key>CFBundleLocalizations</key>
<array>
<string>zh_CN</string>
<string>en</string>
</array>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Flower Story needs to know your location in order to save the flower's location.</string>
<key>NSLocationTemporaryUsageDescriptionDictionary</key>
<array>
<dict>
<key>TemporaryFullAccuracyUsageDescription</key>
<string>Flower Story needs to know your accurate location to judge the distance between flowers.</string>
</dict>
</array>
<key>NSCameraUsageDescription</key>
<string>Flower Story needs access to the camera to take photos.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Flower Story needs access to microphone for taking videos.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>Flower Story needs access to the photo gallery for picking photos and videos.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Flower Story needs access to photos gallery for picking photos and videos.</string>
</dict>
</plist>