Giter Club home page Giter Club logo

debug_overlay's Introduction

Hello, world! ๐Ÿ‘‹

I'm Jonas Wanke, a software developer with a focus on Flutter, Dart, and Rust.

๐Ÿฌ Together with @MarcelGarus, I'm creating ๐Ÿญ Candy: A sweet, functional programming language that is robust, minimalistic, and expressive.
๐ŸŒฑ I'm currently working at aGYM.

๐Ÿ“ซ Don't hesitate to get in touch with me! (digitally ๐Ÿ˜ท)
You can reach me on Telegram or via email. Other contact options are listed on my website.

debug_overlay's People

Contributors

dependabot[bot] avatar jonaswanke avatar jwbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

andikapratama

debug_overlay's Issues

Can we add an option to show most recent logs first.

This is what I have in a wrapper class:

import 'package:debug_overlay/debug_overlay.dart';
import 'package:flutter/widgets.dart';

class Logger {
  static final logs = LogCollection();

  static void info(String message) => _log(message, DiagnosticLevel.info);
  static void debug(String message) => _log(message, DiagnosticLevel.debug);
  static void error(String message) => _log(message, DiagnosticLevel.error);

  static void _log(String message, DiagnosticLevel level) {
    // Flutter will wait until the current build is completed before executing this code
    WidgetsBinding.instance.addPostFrameCallback((_) {
      debugPrint(message);
      logs.add(
        Log(level: level, message: message),
      );

      final reversed = logs.logs.reversed.toList();
      logs.logs.clear();
      logs.logs.addAll(reversed);
    });
  }
}

This is my hacky way to show the most recent logs first. Can we instead have that as an option?

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.