flutter_mxlogger 1.2.14 copy "flutter_mxlogger: ^1.2.14" to clipboard
flutter_mxlogger: ^1.2.14 copied to clipboard

MXLogger is based on MMAP memory mapping mechanism, support iOS Android Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'log_page.dart';
final navkey = GlobalKey<NavigatorState>();
void main() async{
  WidgetsFlutterBinding.ensureInitialized();

  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();

  }


  @override
  Widget build(BuildContext context) {

    return MaterialApp(
      navigatorKey: navkey,
      home: Builder(builder: (context){
        return Scaffold(
          appBar: AppBar(
            title: const Text('Plugin example app'),
          ),
          body: Center(
              child:Column(
                children: [
                  ElevatedButton(onPressed: (){
                    Navigator.of(context)
                        .push(MaterialPageRoute(builder: (context) {
                      return LogPage();
                    }));
                  },child: Text("进入日志页面")),

                ],
              )
          ),
        );
      })
    );
  }
}
8
likes
150
points
54
downloads

Publisher

unverified uploader

Weekly Downloads

MXLogger is based on MMAP memory mapping mechanism, support iOS Android Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

ffi, flutter

More

Packages that depend on flutter_mxlogger