Open berkeresvan opened 6 months ago
name: costumfont_kullanimi description: "A new Flutter project."
flutter pub publish
. This is preferred for private packages.publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment: sdk: '>=3.2.0 <4.0.0'
flutter pub upgrade --major-versions
. Alternatively,flutter pub outdated
.dependencies: flutter: sdk: flutter
cupertino_icons: ^1.0.2
dev_dependencies: flutter_test: sdk: flutter
analysis_options.yaml
file located at the root of yourflutter_lints: ^2.0.0
flutter: fonts:
family: FarkliYazi fonts:
uses-material-design: true
#
import 'package:flutter/material.dart';
void main() { runApp(const MyApp()); }
class MyApp extends StatelessWidget { const MyApp({super.key});
@override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( fontFamily: 'FarkliYazi', colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: true, ), home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } }
class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title});
final String title;
@override State createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
int _counter = 0;
void _incrementCounter() { setState(() { _counter++; }); }
@override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( backgroundColor: Theme.of(context).colorScheme.inversePrimary, title: Text(widget.title), ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children:[
const Text(
'You have pushed the button this many times:',
style: TextStyle(fontFamily: 'FarkliYazi', fontSize: 25),
),
Text(
'$_counter',
style: Theme.of(context).textTheme.headlineMedium,
),
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
),
);
}
}