Welcom To My Package

My Contact Info

Youtube Channel : youtube.com/@HalilUcel

Mail Address : hucelsoft@gmail.com

My Gihthub : github.com/HalilUcel14

Linkedin : www.linkedin.com/in/halilucel/

<------------------------------------------------------------------>

Installing

<------------------------- PAGES --------------------------->

1.CONST

  • Duration

DATABASE

- - - Firebase

- - - Hive
- - - Supabase

-- ENUM

- - - Device
- - - Theme
- - - View

-- feauture

-- interfa

-- model

-- other

Tr: Paketimizi projenize eklemek için aşağıdaki adımları takip edebilirsiniz. En: bla bla bla

Code sample: Base Model

What does it do : Base Model Service Example Ne işe yarar: Base Model Servis Örneği


    // En: This code is available in the package. You just need to call.
    // TR: Bu kod paketin içerisinde mevcuttur. Sadece çağırmanız yeterlidir.
    abstract class BaseModel<T> {
        Map<String, dynamic> toJson();
        T fromJson(Map<String, dynamic> json) ;
    }

    //------------------[USAGE]----------------------
    //------------------[KULLANIM]-------------------
    class ExampleModel extends BaseModel<ExampleExtends>{
        // bla bla code
        // bla bla code
    }
    // -------------------[Sample]---------------------
    class NoteModel extends BaseModel<NoteModel>{
        String? note;
        String? title;

        NoteModel({this.note,this.title});

        @override
        NoteModel fromJson(Map<String,dynamic> json){
            return NoteModel(
                title: json['title'],
                note: json['note'],
            );
        }

        @override
        Map<String, dynamic> toJson(){
            return {
                'note': note,
                'title': title,
            };
        }

    }

Code sample: Extension Context Extension

What does it do : Navigator Extension Ne işe yarar: Navigator Eklentisi

    // Navigator on BuildContext .Dot Function
    ElevatedButton(
        // context. pushReplacement - push - pop and many function
        onPressed: () => context.push(HomeWidget()),
        child: Text('Goto Home Widget');
    );

-----------------------------------------------------------

What does it do : Screen Size Extension Ne işe yarar: Screen Size Eklentisi

    // Screen Size Height or Width on BuildContext .Dot Function
    Text(
        'Selam Naber'
        style: TextStyle(
            // context.screenWidth or context.screenHeight
            fontSize: context.screenHeight / 2
        ),
    );

------------------------------------------------------------

What does it do : Theme Data Extension Ne işe yarar: Theme Data Eklentisi


    Text(
        'Text Yazısıdır. Context içerisinden textStyle getirebilirsin'
        style: context.textTheme.titleLarge
    );

-------------------------------------------------------------

What does it do : Numeric Extension Ne işe yarar: Numeric Eklentisi


    Column(
        children[
            Container(),
            //
            AnyWidget(),
            // Any Number . widthBox or highBox use Space Widget
            24.widthBox
            //
            AnyWidget(),
        ]
    );

--------------------------------------------------------------

What does it do : Firebase Auth Manager Ne işe yarar: Firebase Auth Manager


    import 'package:codeofland/codeofland.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';

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

  @override
  Widget build(BuildContext context) {
    FirebaseAuthManager authManager =
        FirebaseAuthManager.of(auth: FirebaseAuth.instance);
    return Column(
      children: [
        // For Email Address
        TextFormField(),
        // For Password
        TextFormField(),
        // Show Uid CurrentUser
        Text('${authManager.currentUser?.uid}'),
        //
        ElevatedButton(
          onPressed: () {
            authManager.signInWithEmailAndPassword(
                email: 'email', password: 'password');
          },
          child: const Text('Giriş'),
        ),
      ],
    );
  }
}

---------------------------------------------------------------

What does it do : With Spacing Widget Ne işe yarar: With Spacing Widget


    import 'package:codeofland/codeofland.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';

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

  @override
  Widget build(BuildContext context) {
    return ColumnWithSpacing(
      spacing:10,
      children: [
        OneWidget(),
        // SizedBox(height: 10),
        TwoWidget(),
        // SizedBox(height: 10),
        ThreeWidget(),
        
      ],
    );
  }
}

----------------------------------------------------------------

What does it do : With Spacing Widget Ne işe yarar: With Spacing Widget


    import 'package:codeofland/codeofland.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';

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

  @override
  Widget build(BuildContext context) {
    return RowWithSpacing(
      spacing:10,
      children: [
        OneWidget(),
        // SizedBox(height: 10),
        TwoWidget(),
        // SizedBox(height: 10),
        ThreeWidget(),
        
      ],
    );
  }
}



Code sample: Const Duration or Number

What does it do : Number ve Duration için gelen yenilikler eklendi Ne işe yarar: Number ve Duration için gelen yenilikler eklendi

    // Navigator on BuildContext .Dot Function
    ElevatedButton(
        // context. pushReplacement - push - pop and many function
        onPressed: () => context.push(HomeWidget()),
        child: Text(
          'Goto Home Widget',
          fontSize: AppNum.gap8(),
          duration: AppDuration.second(20),
        );
    );

Code sample: Convertable Text

What does it do : Simple Use for Text Widget Ne işe yarar: Text Widget için Kolay Kullanım.

    Column{
      children:[
        ConvertableText(
          text: "Test Text",
          style: context.textTheme.headLineSmall,
          color: context.colorScheme.primary,
        ),
      ]
    }

Code sample: NEtwork Image Widget

What does it do : Simple Use for Network Image Widget Ne işe yarar: NEtwork Image Widget için Kolay Kullanım.

    Column{
      children:[
        NetworkImageWidget(imageUrl:'https://.......')
      ]
    }

Libraries

codeofland
const/duration/duration_const
const/index
database/firebase/auth/auth
database/hive/hive_initialize
database/hive/hive_manager
database/hive/index
database/index
enum_type/device/device
enum_type/index
enum_type/inherit/language_type
enum_type/theme/theme_enum
enum_type/view/size_enum
feauture/base/base_model
feauture/base/cloud_store_model
feauture/base/index
feauture/exception/custom_exception/custom_exception
feauture/exception/firebase_exception/auth/firebase_auth_exception
feauture/exception/firebase_exception/firestore/firestore_cloudstore_exception
feauture/exception/firebase_exception/index
feauture/exception/firebase_exception/storage/firebase_storage_exception
feauture/exception/hive_exception/hive_exception
feauture/exception/index
feauture/extension/datetime/datetime
feauture/extension/device_width/device_width
feauture/extension/form/form_state
feauture/extension/index
feauture/extension/media_query/media_query_context
feauture/extension/model/index
feauture/extension/model/language_model
feauture/extension/navigation/argument
feauture/extension/scaffold/scaffold_messenger
feauture/extension/scaffold/scaffold_state
feauture/extension/string/index
feauture/extension/string/money_extension
feauture/extension/string/nullable_extension
feauture/extension/string/regexp_extension
feauture/extension/string/text_space_extension
feauture/extension/string/try_parse
feauture/index
feauture/life_cycle/index
feauture/life_cycle/mobile_life_cycle
feauture/life_cycle/web_life_cycle
feauture/mixin/hive/hive_model_mixin
feauture/mixin/index
feauture/notifier/boolean_notifier
feauture/notifier/index
index
inherited_widget/change_notifier/language_notifier
inherited_widget/change_notifier/session_notifier
inherited_widget/index
inherited_widget/inherited_notifier/language_notifier
inherited_widget/inherited_notifier/session_notifier
interface/firebase/auth
interface/firebase/cloud_firestore
interface/firebase/index
interface/firebase/storage
interface/index
interface/route/route
interface/theme/theme
model/firestore/cloud_firestore_model
model/index
model/language/language_model
model/role/role_level_security
model/session/session_user
other/equatable/my_equatable
other/file/file_operation
other/index
other/random_key/random_key