Skip to content

Boring to beautiful codelab update #2324

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 8 commits into
base: main
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
218 changes: 160 additions & 58 deletions boring_to_beautiful/codelab_rebuild.yaml

Large diffs are not rendered by default.

70 changes: 0 additions & 70 deletions boring_to_beautiful/final/lib/src/shared/views/outlined_card.dart

This file was deleted.

106 changes: 53 additions & 53 deletions boring_to_beautiful/step_01/ios/Runner.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

88 changes: 44 additions & 44 deletions boring_to_beautiful/step_01/macos/Runner.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>
2 changes: 0 additions & 2 deletions boring_to_beautiful/step_01/macos/Runner/Release.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
</dict>
</plist>
2 changes: 1 addition & 1 deletion boring_to_beautiful/step_01/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
english_words: ^4.0.0
flutter_bloc: ^9.1.1
freezed_annotation: ^3.0.0
go_router: ^15.1.2
go_router: ^15.1.3
material_color_utilities: any
universal_platform: ^1.1.0
url_launcher: ^6.3.1
Expand Down
106 changes: 53 additions & 53 deletions boring_to_beautiful/step_02/ios/Runner.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion boring_to_beautiful/step_02/lib/src/shared/extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
// found in the LICENSE file.

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';

extension TypographyUtils on BuildContext {
ThemeData get theme => Theme.of(this);
TextTheme get textTheme => theme.textTheme;
TextTheme get textTheme => GoogleFonts.montserratTextTheme(theme.textTheme);
ColorScheme get colors => theme.colorScheme;
TextStyle? get displayLarge =>
textTheme.displayLarge?.copyWith(color: colors.onSurface);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import Foundation

import desktop_window
import dynamic_color
import path_provider_foundation
import url_launcher_macos

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
DesktopWindowPlugin.register(with: registry.registrar(forPlugin: "DesktopWindowPlugin"))
DynamicColorPlugin.register(with: registry.registrar(forPlugin: "DynamicColorPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
}
88 changes: 44 additions & 44 deletions boring_to_beautiful/step_02/macos/Runner.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
</dict>
</plist>
2 changes: 0 additions & 2 deletions boring_to_beautiful/step_02/macos/Runner/Release.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
</dict>
</plist>
3 changes: 2 additions & 1 deletion boring_to_beautiful/step_02/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ dependencies:
english_words: ^4.0.0
flutter_bloc: ^9.1.1
freezed_annotation: ^3.0.0
go_router: ^15.1.2
go_router: ^15.1.3
material_color_utilities: any
universal_platform: ^1.1.0
url_launcher: ^6.3.1
google_fonts: ^6.2.1

dev_dependencies:
flutter_test:
Expand Down
Loading