print_color 2.2.7

Flutter Android iOS

print(), in colors, Help organizing debugging making it more fun

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('print_color'),
        ),
        body: Center(
            child: OutlineButton(
          onPressed: () {
            Print.white('white');
            Print.black('black');
            Print.gray('gray');
            Print.cyan('cyan');
            Print.blue('blue');
            Print.green('green');
            Print.red('red');
            Print.magenta('magenta');
            Print.yellow('yellow');
          },
          child: Text('Click Me For Magic'),
        )),
      ),
    );
  }
}
8
likes
100
pub points
72%
popularity

Publisher

msayed.net

print(), in colors, Help organizing debugging making it more fun

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL 2.0 (LICENSE)

Dependencies

ansicolor, flutter

More

Packages that depend on print_color