Skip to content

Instantly share code, notes, and snippets.

View DaisukeNagata's full-sized avatar
:octocat:
Focusing

EveryDaySoft DaisukeNagata

:octocat:
Focusing
View GitHub Profile
@DaisukeNagata
DaisukeNagata / counter.dart
Last active June 7, 2022 16:46
One of the calculation methods of flutter
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@DaisukeNagata
DaisukeNagata / callback.dart
Last active May 19, 2022 14:30
check call back
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@DaisukeNagata
DaisukeNagata / get_textsize.dart
Created April 9, 2022 13:05
How to get the size of text
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@DaisukeNagata
DaisukeNagata / rideonthekeyboard.dart
Created January 17, 2022 20:14
Whenever I called Scaffold with Scaffold, I confirmed that Tab was on the Keyboard.
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
@DaisukeNagata
DaisukeNagata / AutoOpenTextField.swift
Last active November 28, 2021 04:27
AutoOpenTextField.swift
import SwiftUI
@available(iOS 15.0, *)
struct AutoOpenTextField: View {
@State private var name = ""
@FocusState var isFocused: Bool {
didSet {
DispatchQueue.main.async {
isFocused = true
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Welcome to Flutter',
home: new Scaffold(
import UIKit
class Pointted {
var horizonal: CGPoint
var vertical: CGPoint
init(h: CGPoint, v: CGPoint) {
horizonal = h
vertical = v
}
//
// ViewController.swift
// Samplem4a
//
// Created by 永田大祐 on 2021/03/28.
//
import UIKit
import AVFoundation
@DaisukeNagata
DaisukeNagata / Get_DepthData.swift
Last active March 28, 2021 14:41
Get_DepthData
import UIKit
import AVFoundation
class ViewController: UIViewController, AVCapturePhotoCaptureDelegate {
private var videoPreviewLayer: AVCaptureVideoPreviewLayer?
private var stillImageOutput = AVCapturePhotoOutput()
private var captureSession = AVCaptureSession()
private var capturepDevice: AVCaptureDevice?
private var session: AVCaptureSession?