Skip to content

Commit

Permalink
chore: updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Numoy committed Nov 18, 2024
1 parent 86f840c commit ac1cc08
Show file tree
Hide file tree
Showing 8 changed files with 268 additions and 284 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
try {
flutterEngine.getPlugins().add(new io.flutter.plugins.camera.CameraPlugin());
flutterEngine.getPlugins().add(new io.flutter.plugins.camerax.CameraAndroidCameraxPlugin());
} catch (Exception e) {
Log.e(TAG, "Error registering plugin camera_android, io.flutter.plugins.camera.CameraPlugin", e);
Log.e(TAG, "Error registering plugin camera_android_camerax, io.flutter.plugins.camerax.CameraAndroidCameraxPlugin", e);
}
try {
flutterEngine.getPlugins().add(new io.flutter.plugins.flutter_plugin_android_lifecycle.FlutterAndroidLifecyclePlugin());
Expand Down
4 changes: 2 additions & 2 deletions android/local.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sdk.dir=/Users/saifulislam/Library/Android/sdk
flutter.sdk=/opt/homebrew/Caskroom/flutter/3.19.6/flutter
sdk.dir=/Users/marvin/Library/Android/sdk
flutter.sdk=/Users/marvin/flutter
20 changes: 10 additions & 10 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ class _MyAppState extends State<MyApp> {
),
outlinedButtonTheme: OutlinedButtonThemeData(
style: ButtonStyle(
minimumSize: MaterialStateProperty.all(
minimumSize: WidgetStateProperty.all(
const Size(150.0, 60.0),
),
side: MaterialStateProperty.resolveWith(
(Set<MaterialState> state) {
if (state.contains(MaterialState.disabled)) {
side: WidgetStateProperty.resolveWith(
(Set<WidgetState> state) {
if (state.contains(WidgetState.disabled)) {
return const BorderSide(
color: Colors.grey,
);
Expand All @@ -83,14 +83,14 @@ class _MyAppState extends State<MyApp> {
);
},
),
shape: MaterialStateProperty.all(
shape: WidgetStateProperty.all(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.0),
),
),
textStyle: MaterialStateProperty.resolveWith(
(Set<MaterialState> state) {
if (state.contains(MaterialState.disabled)) {
textStyle: WidgetStateProperty.resolveWith(
(Set<WidgetState> state) {
if (state.contains(WidgetState.disabled)) {
return Theme.of(context)
.textTheme
.labelLarge
Expand All @@ -110,7 +110,7 @@ class _MyAppState extends State<MyApp> {
),
textButtonTheme: TextButtonThemeData(
style: ButtonStyle(
textStyle: MaterialStateProperty.all(
textStyle: WidgetStateProperty.all(
Theme.of(context).textTheme.labelLarge?.copyWith(
color: Colors.cyan,
),
Expand Down Expand Up @@ -150,7 +150,7 @@ class _MyAppState extends State<MyApp> {
.copyWith(
onPrimary: Colors.white,
)
.copyWith(background: Colors.white),
.copyWith(surface: Colors.white),
),
surveyProgressbarConfiguration: SurveyProgressConfiguration(
backgroundColor: Colors.white,
Expand Down
Loading

0 comments on commit ac1cc08

Please sign in to comment.