Skip to content

Instantly share code, notes, and snippets.

View ekoRemDev's full-sized avatar
🌍
Coding

Eko ekoRemDev

🌍
Coding
View GitHub Profile
_errorsProvider.errorMessage = ErrorMessage(
type: ErrorMessageType.error,
title: e.toString(),
);
final appLocale = ProviderScope.containerOf(context, listen: false)
.read(globalProviders.configsProvider)
.appLocale;
2022-09-05 21:19:02.028 29604-29604/? D/TSLocationManager: [c.t.l.adapter.TSConfig d] ℹ️ Persist config, dirty: [backgroundPermissionRationale, backgroundPermissionRationale.title, backgroundPermissionRationale.message, backgroundPermissionRationale.negativeAction, debug, desiredAccuracy, enableHeadless, heartbeatInterval, logLevel, startOnBoot, stopOnTerminate]
2022-09-05 21:19:02.056 29604-29604/? I/TSLocationManager: [c.t.locationmanager.util.c g]
🔵 LocationAuthorization: Requesting Background permission
2022-09-05 21:19:02.104 29604-29604/? I/TSLocationManager: [c.t.locationmanager.util.c g]
🔵 LocationAuthorization: Requesting Background permission
2022-09-05 21:19:02.880 29604-29604/? D/TSLocationManager: [c.t.l.l.LifecycleManager onPause] ☯️ onPause
2022-09-05 21:19:02.977 29604-29885/? I/TSLocationManager: [c.t.l.data.sqlite.GeofenceDAO destroyAll] ✅
2022-09-05 21:19:03.007 29604-29886/? I/TSLocationManager: [c.t.l.data.sqlite.GeofenceDAO create]
✅ 1
2022-09-05 21:19:03.026
Router.neglect(context, () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const DestinationScreen(),
),
);
});
@ekoRemDev
ekoRemDev / elevated_button.dart
Created December 16, 2021 03:52
Elevated Button
ElevatedButton(
style: ElevatedButton.styleFrom(
elevation: 2,
primary: Color(0xfff28b33),
fixedSize: Size(315,56),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(20.0),
side: BorderSide(
color: Color(0xff707070),
),
return Consumer<ProviderLocale>(builder: (
context,
localeProvider,
child,
) {
return Container(
width: responsiveWidthWithPadding(32),
height: 50,
decoration: BoxDecoration(
color: Colors.white,
import 'package:flutter/material.dart';
class CustomSwitch2 extends StatefulWidget {
final bool value;
final ValueChanged<bool> onChanged;
const CustomSwitch2({Key key, this.value, this.onChanged}) : super(key: key);
@override
_CustomSwitch2State createState() => _CustomSwitch2State();
mport 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@ekoRemDev
ekoRemDev / gist:1488c48c43d5661ee2c363fb325d41a3
Created September 15, 2021 03:23
Flutter Animation Sample
import 'dart:async';
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@ekoRemDev
ekoRemDev / gist:c039c1a6c6897ffe221cc87a0c1e5b19
Created September 15, 2021 03:19
Custom Shape Container
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',