Skip to content

Remove deprecated API uses #241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import FlutterMacOS
import Foundation

import shared_preferences_macos
import shared_preferences_foundation

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
Expand Down
4 changes: 2 additions & 2 deletions device_preview/lib/src/views/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extension ThemeToolbarExtension on DevicePreviewToolBarThemeData {
primaryColor: accentColor,
primaryColorDark: accentColor,
indicatorColor: accentColor,
toggleableActiveColor: accentColor,
toggleButtonsTheme: const ToggleButtonsThemeData(color: accentColor),
highlightColor: accentColor.withOpacity(0.1),
sliderTheme: base.sliderTheme.copyWith(
thumbColor: accentColor,
Expand All @@ -51,7 +51,7 @@ extension ThemeToolbarExtension on DevicePreviewToolBarThemeData {
primaryColor: accentColor,
primaryColorDark: accentColor,
indicatorColor: accentColor,
toggleableActiveColor: accentColor,
toggleButtonsTheme: const ToggleButtonsThemeData(color: accentColor),
highlightColor: accentColor,
appBarTheme: base.appBarTheme.copyWith(
color: barColor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ToolPanelSection extends StatelessWidget {
),
child: Text(
title.toUpperCase(),
style: theme.textTheme.subtitle2?.copyWith(
style: theme.textTheme.titleMedium?.copyWith(
color: theme.hintColor,
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class SettingsSection extends StatelessWidget {
shape: BoxShape.circle,
color: background.scaffoldBackgroundColor,
border: Border.all(
color: toolbar.backgroundColor,
color: toolbar.scaffoldBackgroundColor,
width: 1,
),
),
Expand Down Expand Up @@ -84,7 +84,7 @@ class SettingsSection extends StatelessWidget {
shape: BoxShape.circle,
color: toolbar.scaffoldBackgroundColor,
border: Border.all(
color: toolbar.backgroundColor,
color: toolbar.scaffoldBackgroundColor,
width: 1,
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class _TypeSectionHeader extends StatelessWidget {
}
}()
.toUpperCase(),
style: theme.textTheme.subtitle2?.copyWith(
style: theme.textTheme.titleMedium?.copyWith(
color: theme.hintColor,
),
),
Expand Down
2 changes: 1 addition & 1 deletion device_preview/lib/src/views/tool_panel/tool_panel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class _ToolPanel extends StatelessWidget {
appBar: AppBar(
title: Text(
'Device preview',
style: theme.textTheme.headline6?.copyWith(
style: theme.textTheme.titleLarge?.copyWith(
fontSize: 14,
fontWeight: FontWeight.bold,
color: (theme.colorScheme.brightness == Brightness.dark
Expand Down
2 changes: 1 addition & 1 deletion devtools_device_preview/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ environment:
flutter: ">=1.17.0"

dependencies:
device_frame: ^1.0.0-alpha.1
device_frame: ^1.1.0
flutter:
sdk: flutter

Expand Down
2 changes: 1 addition & 1 deletion plugins/device_preview_screenshot/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class _MyHomePageState extends State<MyHomePage> {
),
Text(
'$_counter',
style: Theme.of(context).textTheme.headline4,
style: Theme.of(context).textTheme.headlineMedium,
),
],
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import FlutterMacOS
import Foundation

import shared_preferences_macos
import shared_preferences_foundation

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
Expand Down