flutter_mxlogger 1.2.11+1 copy "flutter_mxlogger: ^1.2.11+1" to clipboard
flutter_mxlogger: ^1.2.11+1 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
0
pub points
65%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, flutter

More

Packages that depend on flutter_mxlogger