venturo 1.0.0 copy "venturo: ^1.0.0" to clipboard
venturo: ^1.0.0 copied to clipboard

The package aims to assist in the formation of applications.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:venturo/venturo_core_sdk.dart';
import 'package:venturo_test_components/features/vent_button/vent_button_test.dart';
import 'package:venturo_test_components/features/vent_dialog/vent_dialog_test.dart';
import 'package:venturo_test_components/features/vent_drawer/vent_drawer.dart';
import 'package:venturo_test_components/features/vent_text_form_field/controllers/vent_text_form_field_controller.dart';
import 'package:venturo_test_components/features/vent_text_form_field/views/vent_texk_form_field_view.dart';

var themeData = ThemeData();

void main() {
  VenturoCoreSdk().initialize(themes: themeData);
  runApp(const MainApp());
}

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

  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      designSize: VenturoCoreSdk.designSize!,
      builder: (context, child) {
        return GetMaterialApp(
          debugShowCheckedModeBanner: false,
          theme: themeData,
          home: Scaffold(
            appBar: AppBar(
              title: const Text('Venturo Core Components'),
              centerTitle: true,
            ),
            body: ListView(
              padding: EdgeInsets.all(20.w),
              children: [
                ///Vent Button Implementation
                ListTile(
                  shape: RoundedRectangleBorder(
                      borderRadius: BorderRadius.circular(15)),
                  tileColor: Theme.of(context).primaryColor,
                  onTap: () => Get.to(const VentButtonTest()),
                  title: const Text(
                    "Vent Button",
                    style: TextStyle(color: Colors.white),
                  ),
                  trailing: Icon(
                    Icons.arrow_forward_ios,
                    size: 15.0.sp,
                    color: Colors.white,
                  ),
                ),

                20.w.verticalSpace,

                /// Vent Text Form Field Implementation
                ListTile(
                  shape: RoundedRectangleBorder(
                      borderRadius: BorderRadius.circular(15)),
                  tileColor: Theme.of(context).primaryColor,
                  onTap: () => Get.to(
                    const VentTextFormFieldView(),
                    binding: BindingsBuilder(() {
                      Get.lazyPut<VentTextFormFieldController>(() {
                        return VentTextFormFieldController();
                      });
                    }),
                  ),
                  title: const Text(
                    "Vent Text Form Field",
                    style: TextStyle(color: Colors.white),
                  ),
                  trailing: Icon(
                    Icons.arrow_forward_ios,
                    size: 15.0.sp,
                    color: Colors.white,
                  ),
                ),

                20.verticalSpace,

                /// Vent Button Implementation
                ListTile(
                  shape: RoundedRectangleBorder(
                      borderRadius: BorderRadius.circular(15)),
                  tileColor: Theme.of(context).primaryColor,
                  onTap: () => Get.to(const VentDrawerTest()),
                  title: const Text(
                    "Vent Drawer",
                    style: TextStyle(color: Colors.white),
                  ),
                  trailing: Icon(
                    Icons.arrow_forward_ios,
                    size: 15.0.sp,
                    color: Colors.white,
                  ),
                ),

                20.w.verticalSpace,

                ///Vent Button Implementation
                ListTile(
                  shape: RoundedRectangleBorder(
                      borderRadius: BorderRadius.circular(15)),
                  tileColor: Theme.of(context).primaryColor,
                  onTap: () => Get.to(const VentDialogTest()),
                  title: const Text(
                    "Vent Dialog",
                    style: TextStyle(color: Colors.white),
                  ),
                  trailing: Icon(
                    Icons.arrow_forward_ios,
                    size: 15.0.sp,
                    color: Colors.white,
                  ),
                ),
              ],
            ),
          ),
        );
      },
    );
  }
}
4
likes
125
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

The package aims to assist in the formation of applications.

Repository

Documentation

API reference

License

BSL-1.0 (license)

Dependencies

flutter, flutter_screenutil, flutter_svg, get, lottie

More

Packages that depend on venturo