gojek_courier 0.1.2-beta copy "gojek_courier: ^0.1.2-beta" to clipboard
gojek_courier: ^0.1.2-beta copied to clipboard

Gojek Courier Implementation for Flutter

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:gojek_courier_example/simple_chat.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: MenuScreen(),
    );
  }
}

class MenuScreen extends StatelessWidget {
  const MenuScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text("Menu Example"),
        ),
        body: ListView(
          children: [
            menuTile('Chat App', () {
              Navigator.push(
                context,
                MaterialPageRoute(
                    builder: (context) => const SimpleChatScreen()),
              );
            }),
          ],
        ));
  }

  ListTile menuTile(String name, Function() onTap) {
    return ListTile(
      title: Text(name),
      onTap: onTap,
    );
  }
}
3
likes
120
points
22
downloads

Publisher

verified publisheranggaaryas.my.id

Weekly Downloads

Gojek Courier Implementation for Flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, json_annotation, plugin_platform_interface

More

Packages that depend on gojek_courier