Skip to content

Commit

Permalink
calendar month view and day page
Browse files Browse the repository at this point in the history
  • Loading branch information
mixin27 committed Aug 11, 2024
1 parent c1f2dee commit ae6575a
Show file tree
Hide file tree
Showing 18 changed files with 1,094 additions and 11 deletions.
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="mmcalendar"
android:label="MM Calendar"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
Expand Down
4 changes: 3 additions & 1 deletion assets/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"developer": "Kyaw Zayar Tun"
"developer": "Kyaw Zayar Tun",

"nagahle": "Dragon head to {} "
}
4 changes: 3 additions & 1 deletion assets/translations/en_US.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"developer": "Kyaw Zayar Tun"
"developer": "Kyaw Zayar Tun",

"nagahle": "Dragon head to {} "
}
4 changes: 3 additions & 1 deletion assets/translations/my.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{
"developer": "Kyaw Zayar Tun"
"developer": "Kyaw Zayar Tun",

"nagahle": "နဂါးခေါင်း {}သို့"
}
7 changes: 7 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mmcalendar/flutter_mmcalendar.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:mmcalendar/src/features/app/app.dart';

Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await EasyLocalization.ensureInitialized();

MmCalendarConfig.initDefault(
const MmCalendarOptions(
language: Language.myanmar,
),
);

runApp(
ProviderScope(
child: EasyLocalization(
Expand Down
4 changes: 2 additions & 2 deletions lib/src/features/app/presentation/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class AppWidget extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp.router(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
title: 'MM Calendar',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
colorScheme: ColorScheme.fromSeed(seedColor: Colors.blueGrey),
useMaterial3: true,
),
routerConfig: _appRouter.config(),
Expand Down
Loading

0 comments on commit ae6575a

Please sign in to comment.