dub 0.0.2 copy "dub: ^0.0.2" to clipboard
dub: ^0.0.2 copied to clipboard

Unofficial Dub.co SDK

example/lib/main.dart

import 'package:example/create-session.dart';
import 'package:example/my-short-links.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Dub SDK Example',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({
    super.key,
  });

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: CreateSession(
        child: MyShortLinks(),
      ),
    );
  }
}
1
likes
140
pub points
0%
popularity

Publisher

unverified uploader

Unofficial Dub.co SDK

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

dio, json_annotation

More

Packages that depend on dub