quickly 4.0.0 copy "quickly: ^4.0.0" to clipboard
quickly: ^4.0.0 copied to clipboard

discontinued
outdated

Quickly is build for faster and cleaner development. It provides lots of extension methods on Widget, String, List and Map.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:quickly/quickly.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      initialRoute: '/',
      routes: {
        '/first': (context) => const FirstWidget(),
        '/second': (context) => const SecondWidget(),
      },
      home: Scaffold(
        appBar: AppBar(title: const Text('Simple UI').black.bold),
        body: Column(
          children: <Widget>[
            const Text('UI design using Quickly.')
                .h6
                .red800
                .bold
                .underline
                .p20
                .center,
            10.hBox(),
            ElevatedButton(
              onPressed: () => FxNavigation.toPage(const FirstWidget()),
              child: const Text('Go to First Screen').white,
              style: ElevatedButton.styleFrom(
                backgroundColor: FxColor.dark,
                shape: RoundedRectangleBorder(borderRadius: FxRadius.r20),
                padding: FxPadding.pxy(h: 40, v: 12),
              ),
            ),
            FxButton(
              text: "Go to First Screen",
              onPressed: () => FxNavigation.toPage(const FirstWidget()),
              color: FxColor.dark,
              shape: BtnShape.pill,
            )
          ],
        ),
      ),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: [
          const Text("First Screen"),
          FxButton(
            text: "Go to First Screen",
            onPressed: () => FxNavigation.toNamed('second',
                args: {'arg1': 'Hello', 'arg2': 'World'}),
            color: FxColor.dark,
            shape: BtnShape.pill,
          )
        ],
      ),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    Map<String, dynamic>? args =
        ModalRoute.of(context)?.settings.arguments as Map<String, dynamic>?;

    return Scaffold(
      body: Column(
        children: [
          Text("First Screen : " + args!.getString('arg1')!),
          FxButton(
            text: "Go to First Screen",
            onPressed: () => FxNavigation.toPage(const FirstWidget()),
            color: FxColor.dark,
            shape: BtnShape.pill,
          )
        ],
      ),
    );
  }
}
53
likes
0
points
45
downloads

Publisher

verified publisherdreamlancer.in

Weekly Downloads

Quickly is build for faster and cleaner development. It provides lots of extension methods on Widget, String, List and Map.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on quickly