Skip to content

Commit facbb59

Browse files
author
UfukCetinkaya57
committed
merge: develop -> main (Flutter scaffold)
2 parents ee0fc9f + f4e971d commit facbb59

6 files changed

Lines changed: 92 additions & 25 deletions

File tree

BASLARKEN.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,31 @@ cp .env.example .env
1919
flutter run
2020
```
2121

22+
> **Not:** Platform klasorleri (android/, ios/, web/) yoksa ilk seferde `flutter create .` calistir.
23+
2224
## Komutlar
2325

2426
| Komut | Aciklama |
2527
|-------|----------|
26-
| flutter run | Development |
27-
| flutter test | Testleri calistir |
28-
| flutter analyze | Kod analizi |
29-
| flutter build apk | Android APK |
30-
| flutter build ios | iOS build |
31-
| flutter pub get | Bagimliliklari yukle |
28+
| `flutter run` | Development |
29+
| `flutter test` | Testleri calistir |
30+
| `flutter analyze` | Kod analizi |
31+
| `flutter build apk` | Android APK |
32+
| `flutter build ios` | iOS build |
33+
| `flutter pub get` | Bagimliliklari yukle |
34+
35+
## Tech Stack
36+
37+
- **Framework:** Flutter 3.x
38+
- **Dil:** Dart
39+
- **UI:** Material Design 3
3240

3341
## Git Workflow
3442

35-
- main - Production (sadece PR ile merge)
36-
- develop - Development
37-
- feature/xxx - Yeni ozellik
38-
- fix/xxx - Bug fix
43+
- `main` - Production (sadece PR ile merge)
44+
- `develop` - Development
45+
- `feature/xxx` - Yeni ozellik
46+
- `fix/xxx` - Bug fix
3947

4048
### Commit Formati
4149
```
@@ -57,4 +65,4 @@ test(kapsam): test ekleme
5765
- Backend repo: [Link]
5866
- Trello: [Board linki]
5967
- Slack: #proje-[ad]
60-
- Figma: [Tasarim linki]
68+
- Figma: [Tasarim linki]

analysis_options.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
linter:
4+
rules:
5+
prefer_const_constructors: true
6+
prefer_const_declarations: true
7+
avoid_print: true

lib/main.dart

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import 'package:flutter/material.dart';
2+
3+
void main() {
4+
runApp(const MyApp());
5+
}
6+
7+
class MyApp extends StatelessWidget {
8+
const MyApp({super.key});
9+
10+
@override
11+
Widget build(BuildContext context) {
12+
return MaterialApp(
13+
title: 'Project Name',
14+
theme: ThemeData(
15+
colorSchemeSeed: Colors.blue,
16+
useMaterial3: true,
17+
),
18+
home: const HomePage(),
19+
);
20+
}
21+
}
22+
23+
class HomePage extends StatelessWidget {
24+
const HomePage({super.key});
25+
26+
@override
27+
Widget build(BuildContext context) {
28+
return Scaffold(
29+
appBar: AppBar(
30+
title: const Text('Project Name'),
31+
),
32+
body: const Center(
33+
child: Text('Hello, World!'),
34+
),
35+
);
36+
}
37+
}

pubspec.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: project_name
2+
description: A new Flutter project.
3+
publish_to: 'none'
4+
version: 1.0.0+1
5+
6+
environment:
7+
sdk: ^3.7.0
8+
9+
dependencies:
10+
flutter:
11+
sdk: flutter
12+
cupertino_icons: ^1.0.8
13+
14+
dev_dependencies:
15+
flutter_test:
16+
sdk: flutter
17+
flutter_lints: ^5.0.0
18+
19+
flutter:
20+
uses-material-design: true

test/widget_test.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import 'package:flutter_test/flutter_test.dart';
2+
import 'package:project_name/main.dart';
3+
4+
void main() {
5+
testWidgets('App renders correctly', (WidgetTester tester) async {
6+
await tester.pumpWidget(const MyApp());
7+
expect(find.text('Hello, World!'), findsOneWidget);
8+
});
9+
}

0 commit comments

Comments
 (0)