Skip to content

Commit ad46646

Browse files
committed
bug fix for font loading
1 parent a7f076c commit ad46646

File tree

5 files changed

+114
-106
lines changed

5 files changed

+114
-106
lines changed

ios/Runner/GeneratedPluginRegistrant.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
@import audioplayers;
1313
#endif
1414

15-
#if __has_include(<path_provider_ios/FLTPathProviderPlugin.h>)
16-
#import <path_provider_ios/FLTPathProviderPlugin.h>
15+
#if __has_include(<path_provider_foundation/PathProviderPlugin.h>)
16+
#import <path_provider_foundation/PathProviderPlugin.h>
1717
#else
18-
@import path_provider_ios;
18+
@import path_provider_foundation;
1919
#endif
2020

2121
@implementation GeneratedPluginRegistrant
2222

2323
+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)registry {
2424
[AudioplayersPlugin registerWithRegistrar:[registry registrarForPlugin:@"AudioplayersPlugin"]];
25-
[FLTPathProviderPlugin registerWithRegistrar:[registry registrarForPlugin:@"FLTPathProviderPlugin"]];
25+
[PathProviderPlugin registerWithRegistrar:[registry registrarForPlugin:@"PathProviderPlugin"]];
2626
}
2727

2828
@end

lib/main.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter_animations/flutter_design_challenges/power_up/power_up.dart';
3-
import 'package:google_fonts/google_fonts.dart';
43

54
void main() {
65
runApp(const MyApp());
@@ -15,9 +14,10 @@ class MyApp extends StatelessWidget {
1514
title: 'Flutter Animations',
1615
debugShowCheckedModeBanner: false,
1716
theme: ThemeData(
18-
primaryColor: const Color(0xFF0e7cfe),
19-
primarySwatch: Colors.blue,
20-
textTheme: GoogleFonts.rubikTextTheme(Theme.of(context).textTheme)),
17+
primaryColor: const Color(0xFF0e7cfe),
18+
primarySwatch: Colors.blue,
19+
// textTheme: GoogleFonts.rubikTextTheme(Theme.of(context).textTheme),
20+
),
2121
home: const PowerUp(),
2222
);
2323
}

macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import FlutterMacOS
66
import Foundation
77

88
import audioplayers
9-
import path_provider_macos
9+
import path_provider_foundation
1010

1111
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
1212
AudioplayersPlugin.register(with: registry.registrar(forPlugin: "AudioplayersPlugin"))

macos/Podfile.lock

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,27 @@ PODS:
22
- audioplayers (0.0.1):
33
- FlutterMacOS
44
- FlutterMacOS (1.0.0)
5-
- path_provider_macos (0.0.1):
5+
- path_provider_foundation (0.0.1):
6+
- Flutter
67
- FlutterMacOS
78

89
DEPENDENCIES:
910
- audioplayers (from `Flutter/ephemeral/.symlinks/plugins/audioplayers/macos`)
1011
- FlutterMacOS (from `Flutter/ephemeral`)
11-
- path_provider_macos (from `Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos`)
12+
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/macos`)
1213

1314
EXTERNAL SOURCES:
1415
audioplayers:
1516
:path: Flutter/ephemeral/.symlinks/plugins/audioplayers/macos
1617
FlutterMacOS:
1718
:path: Flutter/ephemeral
18-
path_provider_macos:
19-
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos
19+
path_provider_foundation:
20+
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/macos
2021

2122
SPEC CHECKSUMS:
2223
audioplayers: 8b48e22684b6e0d9df143b2d1bbd61dca9dab6b4
2324
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
24-
path_provider_macos: 3c0c3b4b0d4a76d2bf989a913c2de869c5641a19
25+
path_provider_foundation: 37748e03f12783f9de2cb2c4eadfaa25fe6d4852
2526

2627
PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7
2728

0 commit comments

Comments
 (0)