Skip to content

Commit

Permalink
[Task] add bottom navigator bar
Browse files Browse the repository at this point in the history
  • Loading branch information
tuta-3205 authored and daolq-2712 committed Jan 16, 2023
1 parent 1ec0a4d commit a36a635
Show file tree
Hide file tree
Showing 21 changed files with 558 additions and 19 deletions.
7 changes: 7 additions & 0 deletions assets/colors/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="primary">#5ED5A8</color>
<color name="tabbar_color">#1B232A</color>
<color name="tabbar_text_color_enable">#C1C7CD</color>
<color name="tabbar_text_color_disable">#777777</color>
</resources>
Binary file added assets/fonts/NeueMontreal-Bold.otf
Binary file not shown.
Binary file added assets/fonts/NeueMontreal-BoldItalic.otf
Binary file not shown.
Binary file added assets/fonts/NeueMontreal-Italic.otf
Binary file not shown.
Binary file added assets/fonts/NeueMontreal-Light.otf
Binary file not shown.
Binary file added assets/fonts/NeueMontreal-LightItalic.otf
Binary file not shown.
Binary file added assets/fonts/NeueMontreal-Medium.otf
Binary file not shown.
Binary file added assets/fonts/NeueMontreal-MediumItalic.otf
Binary file not shown.
Binary file added assets/fonts/NeueMontreal-Regular.otf
Binary file not shown.
3 changes: 3 additions & 0 deletions assets/icons/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions l10n.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
arb-dir: lib/l10n/arb
template-arb-file: app_en.arb
output-localization-file: app_localizations.dart
nullable-getter: false
6 changes: 6 additions & 0 deletions lib/l10n/arb/app_en.arb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"home": "Home",
"popular": "Popular",
"coming": "Coming",
"favorite": "Favorite"
}
6 changes: 6 additions & 0 deletions lib/l10n/arb/app_vi.arb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"home": "Chính",
"popular": "Phổ biến",
"coming": "Sắp",
"favorite": "Thích"
}
30 changes: 16 additions & 14 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import 'package:ez_cache/ez_cache.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:movie_db_flutter_bloc_clean/src/data/datasources/local/app_cache.dart';
import 'package:movie_db_flutter_bloc_clean/src/presentation/main/main_page.dart';

import 'flavors.dart';

Expand All @@ -13,7 +16,6 @@ class MyApp {
required bool isDebug,
required Environment environment,
}) async {
// TODO: config injectable by environment
await AppCache.instance.init(HiveCache());
runApp(const App());
}
Expand All @@ -27,20 +29,20 @@ class App extends StatelessWidget {
title: 'Movie DB',
theme: ThemeData(
primarySwatch: Colors.blue,
scaffoldBackgroundColor: Colors.black,
),
localizationsDelegates: const [
AppLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
],
supportedLocales: const [
Locale('en'), // English
Locale('vi'), // Vietnamese
],
locale: const Locale('en'),
debugShowCheckedModeBanner: false,
home: const MyHomePage(),
);
}

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

@override
Widget build(BuildContext context) => const Scaffold(
backgroundColor: Colors.white,
body: Center(
child: Text('Movie DB Flutter Bloc + Clean Architecture'),
),
home: const MainPgae(),
);
}
210 changes: 210 additions & 0 deletions lib/src/core/utils/gen/assets.gen.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions lib/src/core/utils/gen/colors.gen.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions lib/src/core/utils/gen/fonts.gen.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a36a635

Please sign in to comment.