Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Migrate flutter gallery from deprecated APIs as well as remove unnecessary null-aware operator #766

Merged
merged 1 commit into from
Sep 5, 2022
Merged
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
2 changes: 1 addition & 1 deletion lib/feature_discovery/feature_discovery.dart
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class _FeatureDiscoveryState extends State<FeatureDiscovery>
status = FeatureDiscoveryStatus.closed;
openController.forward(from: 0.0);
});
Overlay.of(context)?.insert(entry);
Overlay.of(context).insert(entry);
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/studies/crane/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ ThemeData _buildCraneTheme() {
colorScheme: const ColorScheme.light().copyWith(
primary: cranePurple800,
secondary: craneRed700,
error: craneErrorOrange,
),
primaryColor: cranePurple800,
hintColor: craneWhite60,
indicatorColor: cranePrimaryWhite,
scaffoldBackgroundColor: cranePrimaryWhite,
cardColor: cranePrimaryWhite,
errorColor: craneErrorOrange,
highlightColor: Colors.transparent,
textTheme: _buildCraneTextTheme(base.textTheme),
textSelectionTheme: const TextSelectionThemeData(
Expand Down
5 changes: 3 additions & 2 deletions lib/studies/shrine/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ ThemeData _buildShrineTheme() {
systemOverlayStyle: SystemUiOverlayStyle.dark,
elevation: 0,
),
colorScheme: _shrineColorScheme,
colorScheme: _shrineColorScheme.copyWith(
error: shrineErrorRed,
),
primaryColor: shrinePink100,
scaffoldBackgroundColor: shrineBackgroundWhite,
cardColor: shrineBackgroundWhite,
errorColor: shrineErrorRed,
primaryIconTheme: _customIconTheme(base.iconTheme),
inputDecorationTheme: const InputDecorationTheme(
border: CutCornersBorder(
Expand Down
5 changes: 3 additions & 2 deletions lib/themes/material_demo_theme_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import 'package:flutter/material.dart';

class MaterialDemoThemeData {
static final themeData = ThemeData(
colorScheme: _colorScheme,
colorScheme: _colorScheme.copyWith(
background: Colors.white,
),
canvasColor: _colorScheme.background,
highlightColor: Colors.transparent,
indicatorColor: _colorScheme.onPrimary,
primaryColor: _colorScheme.primary,
backgroundColor: Colors.white,
scaffoldBackgroundColor: _colorScheme.background,
secondaryHeaderColor: _colorScheme.background,
typography: Typography.material2018(
Expand Down