Skip to content

Commit

Permalink
fewer print2
Browse files Browse the repository at this point in the history
  • Loading branch information
riverscuomo committed Jul 16, 2024
1 parent e894b15 commit e2d56a3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ void main() async {

Future<Map<String, dynamic>> loadConfig() async {
String configString = await rootBundle.loadString('assets/config.json');
// print('Loaded config string: $configString');
Map<String, dynamic> config = jsonDecode(configString);
// print('Parsed config: $config');
return config;
}

Expand All @@ -37,9 +35,9 @@ Future<String?> _getAccessToken() async {

class MyApp extends StatelessWidget {
final Map<String, dynamic> config;
final String sampleJobs;
final String jobs;

MyApp(this.config, this.sampleJobs);
MyApp(this.config, this.jobs);

@override
Widget build(BuildContext context) {
Expand All @@ -50,7 +48,7 @@ class MyApp extends StatelessWidget {
if (settings.name == '/') {
return MaterialPageRoute(
builder: (context) =>
MyHomePage(config: config, sampleJobs: sampleJobs),
MyHomePage(config: config, jobs: jobs),
);
}
// Handle Spotify callback
Expand All @@ -60,7 +58,7 @@ class MyApp extends StatelessWidget {
return MaterialPageRoute(
builder: (context) => MyHomePage(
config: config,
sampleJobs: sampleJobs,
jobs: jobs,
initialAuthCode: code,
),
);
Expand Down

0 comments on commit e2d56a3

Please sign in to comment.