apex_socket 0.0.1+16 apex_socket: ^0.0.1+16 copied to clipboard
ApexSocket plugin.
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:apex_socket/apex_socket.dart';
import 'package:logging/logging.dart';
import 'package:socket_io_client/socket_io_client.dart';
void main() {
Logger.root.level = Level.OFF; // defaults to Level.INFO
Logger.root.onRecord.listen((record) {
print('${record.level.name}: ${record.time}: ${record.message}');
});
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
String _platformVersion = 'Unknown';
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('TITLE'),
),
body: Center(
child: Text('Running on: $_platformVersion\n'),
),
),
);
}
}