Skip to content

Instantly share code, notes, and snippets.

View venbrinoDev's full-sized avatar
🎯
Focusing

Agalaba Ifeanyi Precious venbrinoDev

🎯
Focusing
View GitHub Profile
@venbrinoDev
venbrinoDev / modal_bottom_sheet.xml
Created April 12, 2021 16:15
modal bottom ssheet
<style name="BlueStatusBar" parent="Theme.MaterialComponents.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/white</item>
<item name="colorPrimaryDark">@color/white</item>
<item name="android:statusBarColor" tools:targetApi="l">@color/base_color</item>
<item name="bottomSheetDialogTheme">@style/AppBottomSheetDialogTheme</item>
<item name="colorAccent">@color/white</item>
</style>
extension on WidgetTester {
Future<void> launchApp() async {
await app.main();
await pumpAndSettle();
}
Future<void> clearState() async {
await SharedPreferences.getInstance().then((it) => it.clear());
}
@venbrinoDev
venbrinoDev / LocationUtilities.md
Created April 9, 2024 13:53
Location Utilities

Location Service

you can just create an intsance/(you can register this with get_it/ioc contiainer) for easy usage

import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:flutter_polyline_points/flutter_polyline_points.dart';
import 'package:geolocator/geolocator.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'package:your_project_folder/permission_manager.dart';

App review - spawn a review only when user meets a threashold

Still Testing

import 'dart:math';

import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:in_app_review/in_app_review.dart';
import 'package:zylag/core/data/local_data_source.dart';
import 'package:zylag/core/data/typedefs.dart';
@venbrinoDev
venbrinoDev / README.md
Last active September 29, 2024 23:24
Implement Notification in flutter made easy by venbrinoDevs Team
  1. Make sure to initialize Firebase -
  2. Add dependency flutter pub add firebase_messaging
  3. Configure your app for ios/macos to receive notification (https://firebase.flutter.dev/docs/messaging/apple-integration/)

Usage

import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_messaging/firebase_messaging.dart';