Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumped logger to 1.0.0 #16

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
.pub-cache/
.pub/
/build/
.flutter-plugins-dependencies

# Android related
**/android/**/gradle-wrapper.jar
Expand Down
1 change: 0 additions & 1 deletion example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.github.leisim.example">
<application
android:name="io.flutter.app.FlutterApplication"
android:label="example"
android:icon="@drawable/ic_launcher">
<activity
Expand Down
1 change: 1 addition & 0 deletions example/ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
1 change: 1 addition & 0 deletions example/ios/Flutter/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
27 changes: 18 additions & 9 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/material.dart';
import 'package:logger/logger.dart';
import 'package:logger_flutter/logger_flutter.dart';

Expand All @@ -11,6 +11,8 @@ void main() {

var logger = Logger(
printer: PrettyPrinter(),
output: LogConsole.wrap(innerOutput: ConsoleOutput()),
filter: ProductionFilter(),
);

var loggerNoStack = Logger(
Expand All @@ -34,14 +36,21 @@ void log() {
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: LogConsoleOnShake(
dark: true,
child: Center(
child: Text("Shake Phone to open Console."),
),
return MaterialApp(debugShowCheckedModeBanner: false, home: App());
}
}

class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: MaterialButton(
color: Colors.green,
child: Text("Open the logs"),
onPressed: () {
LogConsole.openLogConsole(context);
},
),
),
);
Expand Down
9 changes: 1 addition & 8 deletions lib/logger_flutter.dart
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
/// Flutter extension for logger
library logger_flutter;

import 'dart:async';
import 'dart:collection';
import 'dart:io';
import 'dart:ui';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:logger/logger.dart';

import 'src/ansi_parser.dart';
import 'src/shake_detector.dart';

part 'src/log_console_on_shake.dart';
part 'src/log_console.dart';
126 changes: 0 additions & 126 deletions lib/src/ansi_parser.dart

This file was deleted.

Loading