flutter_socket_plugin 3.0.0 copy "flutter_socket_plugin: ^3.0.0" to clipboard
flutter_socket_plugin: ^3.0.0 copied to clipboard

FlutterSocket is a practical cross-platform socket plugin,supports both iOS and Android.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_socket_plugin_example/environment_config.dart';
import 'package:flutter_socket_plugin_example/server_page.dart';
import 'client_page.dart';

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

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    bool isClient = EnvironmentConfig.APP_SOCKET == "Client";
    return MaterialApp(
      title: "Socket",
      home: isClient ? ClientPage() : ServerPage(),
      theme: ThemeData(primaryColor: Colors.lightGreen),
    );
  }
}
16
likes
130
pub points
47%
popularity

Publisher

unverified uploader

FlutterSocket is a practical cross-platform socket plugin,supports both iOS and Android.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_socket_plugin