Skip to content

Commit

Permalink
fix: Replace depreciated withOpacity method with withValues
Browse files Browse the repository at this point in the history
  • Loading branch information
CurtlyCritchlow committed Nov 20, 2024
1 parent f1b7141 commit 7554f3d
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 12 deletions.
27 changes: 26 additions & 1 deletion packages/at_common_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,91 @@
## 2.0.15

- **FIX**: Replace depreciated `withOpacity` method with `withValues`

## 2.0.14

- **CHORE**: Addressed static analysis info and warning messages to improve code quality and reduce noise during analysis.
- **FIX**: Replace depreciated items with up-to-date-ones

## 2.0.13:

- **CHORE**: Major version increase of at_commons from ^3.0.55 to ^4.0.1

## 2.0.12

- **CHORE**: Updated repository URL

## 2.0.11

- **CHORE**: Updated dependencies and android gradle versions

## 2.0.10

- **CHORE**: Updated readme

## 2.0.9

- **FIX**: Minor UI updates
- **CHORE**: Updated dependency

## 2.0.8

- **FIX**: Lint Fixes according to flutter 3.0

## 2.0.7

- **FIX**: Added missing fontWeight

## 2.0.6

- **DOCS**: Documentation updated

## 2.0.5

- **DOCS**: Updated Readme.md and example.md
- **CHORE**: Updated example to demonstrate inheriting theme from calling app

## 2.0.4

- **FEAT**: Added check for mobile, tablet and desktop in SizeConfig

## 2.0.3

- **FEAT**: Added `isDesktop` check in CustomAppBar

## 2.0.2

- **FEAT**: borderRadius option added in CustomButton

## 2.0.1

- **UPDATE**: Updated description, repository link
- **FEAT**: More options in CustomInputField

## 2.0.0

- **UPDATE**: Null safety support

## 1.0.1

- **DOCS**: Updated documentation

## 1.0.0

- **CHORE**: Updated authentication in example app

## 0.0.4

- **CHORE**: Updated example app

## 0.0.3

- **CHORE**: Updated with example app

## 0.0.2

- **BREAKING CHANGES**: This release consists of parameter change in custom button and custom input field

## 0.0.1

- The initial release consists of custom appBar, custom button and custom input field
4 changes: 2 additions & 2 deletions packages/at_common_flutter/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ class _MyHomePageState extends State<MyHomePage> {
log('Current value of input field: $val');
},
inputFieldColor: Theme.of(context).brightness == Brightness.light
? Colors.black.withOpacity(0.2)
: Colors.white.withOpacity(0.2),
? Colors.black.withValues(alpha: 0.2)
: Colors.white.withValues(alpha: 0.2),
),
const Divider(
color: Color(0xFFBEC0C8),
Expand Down
2 changes: 1 addition & 1 deletion packages/at_common_flutter/example/macos/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
platform :osx, '10.11'
platform :osx, '10.14'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 51;
objectVersion = 54;
objects = {

/* Begin PBXAggregateTarget section */
Expand Down Expand Up @@ -182,7 +182,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 0930;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
33CC10EC2044A3C60003C045 = {
Expand Down Expand Up @@ -235,6 +235,7 @@
/* Begin PBXShellScriptBuildPhase section */
3399D490228B24CF009A79C7 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
Expand Down Expand Up @@ -344,7 +345,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down Expand Up @@ -423,7 +424,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
Expand Down Expand Up @@ -470,7 +471,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1000"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import Cocoa
import FlutterMacOS

@NSApplicationMain
@main
class AppDelegate: FlutterAppDelegate {
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}

override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
return true
}
}
2 changes: 1 addition & 1 deletion packages/at_common_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: at_common_flutter
description: A Flutter package to provide common widgets used by other atPlatform Flutter packages.
version: 2.0.14
version: 2.0.15
homepage: https://docs.atsign.com/
repository: https://github.com/atsign-foundation/at_widgets/tree/trunk/packages/at_common_flutter
issue_tracker: https://github.com/atsign-foundation/at_widgets/issues
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import share_plus
import shared_preferences_foundation
import sqflite
import url_launcher_macos
import webview_flutter_wkwebview

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FileSaverPlugin.register(with: registry.registrar(forPlugin: "FileSaverPlugin"))
Expand All @@ -29,4 +30,5 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
FLTWebViewFlutterPlugin.register(with: registry.registrar(forPlugin: "FLTWebViewFlutterPlugin"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import path_provider_foundation
import share_plus
import shared_preferences_foundation
import url_launcher_macos
import webview_flutter_wkwebview

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FileSaverPlugin.register(with: registry.registrar(forPlugin: "FileSaverPlugin"))
Expand All @@ -25,4 +26,5 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
FLTWebViewFlutterPlugin.register(with: registry.registrar(forPlugin: "FLTWebViewFlutterPlugin"))
}

0 comments on commit 7554f3d

Please sign in to comment.