Skip to content

Commit

Permalink
Use gal_linux in the example
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellet committed Dec 4, 2023
1 parent 55092bb commit 9153fca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:flutter/foundation.dart' show defaultTargetPlatform, kIsWeb;
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_localizations/flutter_localizations.dart'
Expand All @@ -8,6 +8,7 @@ import 'package:flutter_localizations/flutter_localizations.dart'
GlobalWidgetsLocalizations;
import 'package:flutter_quill/flutter_quill.dart' show Document;
import 'package:flutter_quill/translations.dart' show FlutterQuillLocalizations;
import 'package:gal_linux/gal_linux.dart';
import 'package:hydrated_bloc/hydrated_bloc.dart'
show HydratedBloc, HydratedStorage;
import 'package:path_provider/path_provider.dart'
Expand All @@ -29,6 +30,9 @@ void main() async {
? HydratedStorage.webStorageDirectory
: await getApplicationDocumentsDirectory(),
);
if (defaultTargetPlatform == TargetPlatform.linux && !kIsWeb) {
GalPluginLinux.registerWith();
}
runApp(const MyApp());
}

Expand Down
5 changes: 5 additions & 0 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ dependencies:
cross_file: ^0.3.3+6
cached_network_image: ^3.3.0

gal_linux:
git:
url: https://github.com/freshtechtips/gal-linux.git
ref: main

# Bloc libraries
bloc: ^8.1.2
flutter_bloc: ^8.1.3
Expand Down

0 comments on commit 9153fca

Please sign in to comment.