Giter VIP home page Giter VIP logo

emo-book's People

Contributors

imgbotapp avatar kkimj avatar

Stargazers

 avatar  avatar

Watchers

 avatar

emo-book's Issues

[GetX] dynamic url error, NoSuchMethodError: method not found: 'ga2F' on null

NoSuchMethodError: method not found: 'ga2F' on null
js_primitives.dart:47     at BF.Ia (http://localhost:53486/main.dart.js:56016:5)
js_primitives.dart:47     at rp.Jm (http://localhost:53486/main.dart.js:55525:40)
js_primitives.dart:47     at Object.eval (eval at abu (http://localhost:53486/main.dart.js:3410:8), <anonymous>:3:36)
js_primitives.dart:47     at xz.Td (http://localhost:53486/main.dart.js:47209:21)
js_primitives.dart:47     at Object.eval (eval at abu (http://localhost:53486/main.dart.js:3410:8), <anonymous>:3:36)
js_primitives.dart:47     at fN.mn (http://localhost:53486/main.dart.js:51666:16)
js_primitives.dart:47     at E5.akj (http://localhost:53486/main.dart.js:15403:10)
js_primitives.dart:47     at tr.a_m (http://localhost:53486/main.dart.js:51395:33)
js_primitives.dart:47     at fN.jC (http://localhost:53486/main.dart.js:51511:16)
js_primitives.dart:47     at fN.aK (http://localhost:53486/main.dart.js:51892:9)
js_primitives.dart:47 Another exception was thrown: Instance of 'minified:dD<void>'

[Model] User model

Freezed

import 'package:freezed_annotation/freezed_annotation.dart';

part 'user_model.freezed.dart';
part 'user_model.g.dart';

@freezed
class User with _$User {
  // default constructor
  const User._();

  // freezed constructor
  factory User({
    required String fire_id,
    String? email,
    @Default(true) bool isAnonymous,
    @Default('익명') String name,
  }) = _User;

  factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
}

[Util] Logger

https://github.com/gskinnerTeam/flutter-folio/blob/master/lib/_utils/logger.dart

// Take from:  https://github.com/gskinnerTeam/flutter-folio/blob/master/lib/_utils/logger.dart

// dart
import 'dart:async';

// flutter
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

_Dispatcher logHistory = _Dispatcher('');

void log(String? value) {
  var v = value ?? '';
  logHistory.value = v + '\n' + logHistory.value;
  if (kReleaseMode == false) {
    print(v);
  }
}

void logError(String? value) => log('[ERROR] ' + (value ?? ''));

// Take from: https://flutter.dev/docs/testing/errors
void initLogger(VoidCallback runApp) {
  runZonedGuarded(() async {
    WidgetsFlutterBinding.ensureInitialized();
    FlutterError.onError = (FlutterErrorDetails details) {
      FlutterError.dumpErrorToConsole(details);
      logError(details.stack.toString());
    };
    runApp.call();
  }, (Object error, StackTrace stack) {
    logError(stack.toString());
  });
}

class _Dispatcher extends ValueNotifier<String> {
  _Dispatcher(String value) : super(value);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.