This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void onDrawerButtonPressed(BuildContext _context) { | |
try { | |
FocusScope.of(_context).unfocus(); | |
} catch (e) {} | |
showModalBottomSheet( | |
context: _context, | |
backgroundColor: Colors.transparent, | |
builder: (_context) { | |
return Container( | |
height: MediaQuery.of(_context).size.height * .5, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildMoreButton() { | |
return _isKeyboardVisible | |
? Container() | |
: Padding( | |
padding: const EdgeInsets.fromLTRB(0, 25, 10, 0), | |
child: Row( | |
crossAxisAlignment: CrossAxisAlignment.center, | |
mainAxisAlignment: MainAxisAlignment.end, | |
children: <Widget>[ | |
IconButton( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildMoreButton() { | |
return _isKeyboardVisible | |
? Container() | |
: Padding( | |
padding: const EdgeInsets.fromLTRB(0, 25, 10, 0), | |
child: Row( | |
crossAxisAlignment: CrossAxisAlignment.center, | |
mainAxisAlignment: MainAxisAlignment.end, | |
children: <Widget>[ | |
IconButton( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class AppColors { | |
// Light Color | |
static const Color colorLightPrimary = Color(0xFF5C93C4); | |
static const Color colorLightSecondary = Color(0xFFF9F6E5); | |
static const Color colorLightCardColors = Color(0xFFFFFFFF); | |
// #Light Color | |
// Light Color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AppStrings { | |
static const String appName = 'Ezan Vakti'; | |
static const String appVersion = 'v0.1'; | |
// Get Started | |
static const String next = "İleri"; | |
static const String start = "Başla"; | |
static const String onboardingTitle1 = "Başlarken"; | |
static const String onboardingTitle2 = "Konum"; | |
static const String onboardingTitle3 = "Bildirim"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart' show Brightness, FloatingActionButtonThemeData, FontWeight, IconThemeData, TextTheme, ThemeData, VisualDensity; | |
import 'package:google_fonts/google_fonts.dart' show GoogleFonts; | |
import 'package:prayertimes/ui/helper/AppColors.dart' show AppColors; | |
final themeDarkData = ThemeData( | |
visualDensity: VisualDensity.adaptivePlatformDensity, | |
brightness: Brightness.dark, | |
primaryColor: AppColors.colorDarkPrimary, | |
accentColor: AppColors.colorDarkSecondary, | |
backgroundColor: AppColors.colorDarkSecondary, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="splash_color">#5C93C4</color> | |
</resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<item> | |
<bitmap android:gravity="center" android:src="@drawable/logo" /> | |
</item> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
child: SafeArea( | |
child: Container( | |
height: MediaQuery.of(context).size.height, | |
child: Padding( | |
padding: const EdgeInsets.symmetric(vertical: 10.0), | |
child: Column( | |
crossAxisAlignment: CrossAxisAlignment.stretch, | |
children: [ | |
SizedBox(height: 20), | |
Container( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<OnboardingModel> pages = [ | |
OnboardingModel( | |
title: AppStrings.onboardingTitle1, | |
description: AppStrings.onboardingDescription1, | |
icon: AppLogo(color: AppColors.colorLightSecondary, height: 50), | |
), | |
OnboardingModel( | |
title: AppStrings.onboardingTitle2, | |
description: AppStrings.onboardingDescription2, | |
icon: Icon(AppIcons.location, size: 50, color: AppColors.colorLightSecondary), |