Skip to content

Commit

Permalink
(#1) Mudando pacote Killua
Browse files Browse the repository at this point in the history
  • Loading branch information
luanbatistadev committed Oct 10, 2021
1 parent 400345d commit 6fd6ec9
Show file tree
Hide file tree
Showing 75 changed files with 46 additions and 17 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions killua/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# killua

A new Flutter project.

## Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)

For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.code_heck_00"
applicationId "com.example.killua"
minSdkVersion 16
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.code_heck_00">
package="com.example.killua">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.code_heck_00">
package="com.example.killua">
<application
android:label="code_heck_00"
android:label="killua"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.code_heck_00
package com.example.killua

import io.flutter.embedding.android.FlutterActivity

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.code_heck_00">
package="com.example.killua">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>code_heck_00</string>
<string>killua</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
Expand Down
File renamed without changes.
15 changes: 12 additions & 3 deletions code_heck_00/lib/main.dart → killua/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:code_heck_00/widgets/animated_clock.dart';
import 'package:code_heck_00/widgets/date_timer.dart';
import 'package:flutter/services.dart';
import 'package:killua/widgets/animated_clock.dart';
import 'package:killua/widgets/date_timer.dart';
import 'package:flutter/material.dart';

const kBackgroundColor = Color(0xFF212628);
Expand All @@ -9,7 +10,15 @@ const kCardColor = Color(0xFF2B353A);
const kSecondaryColor = Color(0xFF297CDF);
const kFontFamily = 'Kanit-Regular';

void main() => runApp(const App());
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await SystemChrome.setPreferredOrientations(
[
DeviceOrientation.portraitUp,
],
);
runApp(const App());
}

class App extends StatelessWidget {
const App({Key? key}) : super(key: key);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:math';

import 'package:code_heck_00/main.dart';
import 'package:killua/main.dart';
import 'package:flutter/material.dart';

class CustomClockPainter extends CustomPainter {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:code_heck_00/main.dart';
import 'package:code_heck_00/painters/custom_clock_painter.dart';
import 'package:killua/main.dart';
import 'package:killua/painters/custom_clock_painter.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:code_heck_00/main.dart';
import 'package:killua/main.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

Expand Down Expand Up @@ -45,7 +45,11 @@ class _DateTimerState extends State<DateTimer> {
}

InlineSpan _buildTimer() {
final hour = '${_now.hour - 12}'.padLeft(2, '0');
// ignore: prefer_typing_uninitialized_variables
var hour;
_now.hour <= 12
? hour = '${_now.hour}'.padLeft(2, '0')
: hour = '${_now.hour - 12}'.padLeft(2, '0');
final minute = '${_now.minute}'.padLeft(2, '0');

return TextSpan(
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions code_heck_00/pubspec.yaml → killua/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: code_heck_00
description: A new Flutter project.
name: killua
description: Hunter x Hunter é melhor que One Piece! Ou não?

# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
Expand Down

0 comments on commit 6fd6ec9

Please sign in to comment.