codeofland

Creator: coderz1093

Last updated:

0 purchases

codeofland Image
codeofland Images

Languages

Categories

Add to Cart

Description:

codeofland

Welcom To My Package #
My Contact Info #
Youtube Channel : https://youtube.com/@HalilUcel #
Mail Address : [email protected] #
My Gihthub : https://github.com/HalilUcel14 #
Linkedin : https://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,
};
}

}

copied to clipboard
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');
);
copied to clipboard
-----------------------------------------------------------
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
),
);
copied to clipboard
------------------------------------------------------------
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
);
copied to clipboard
-------------------------------------------------------------
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(),
]
);

copied to clipboard
--------------------------------------------------------------
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ş'),
),
],
);
}
}

copied to clipboard
---------------------------------------------------------------
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(),

],
);
}
}

copied to clipboard
----------------------------------------------------------------
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(),

],
);
}
}



copied to clipboard
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),
);
);

copied to clipboard
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,
),
]
}

copied to clipboard
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://.......')
]
}

copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.