そのままでは、正常に動作しない。
設定->システム->言語入力->詳細設定->テキスト読み上げ再生->再生 で動作を確認
google service speech を google play で最新更新
そのままでは、正常に動作しない。
設定->システム->言語入力->詳細設定->テキスト読み上げ再生->再生 で動作を確認
google service speech を google play で最新更新
一つの Google spread sheet を複数のシートに分割するには?
function splitSheetIntoRows(sourceSheetName, numRowsPerSheet) {
var sourceSheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(sourceSheetName);
if (!sourceSheet) {
throw new Error("指定されたシートが見つかりませんでした。");
}
var lastRow = sourceSheet.getLastRow();
var sourceData = sourceSheet.getRange(1, 1, lastRow, sourceSheet.getLastColumn()).getValues();
for (var i = 0; i < lastRow; i += numRowsPerSheet) {
var numRows = Math.min(numRowsPerSheet, lastRow - i);
// sheet 名の設定
var newSheetName = sourceSheetName + "_" + (i + 1) + "-" + (i + numRows);
var newSheet = SpreadsheetApp.getActiveSpreadsheet().insertSheet(newSheetName);
newSheet.getRange(1, 1, numRows, sourceSheet.getLastColumn()).setValues(sourceData.slice(i, i + numRows));
}
}
function main() {
var sourceSheetName = "ALL"; // 分割元のシート名をここに指定
var numRowsPerSheet = 25; // 分割する行数をここに指定
splitSheetIntoRows(sourceSheetName, numRowsPerSheet);
}
Container(
width: double.infinity,
height: 1,
color: Colors.black,
),
全体のソース
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Draw 3 Lines Across Screen Width'),
),
body: Column(
children: [
SizedBox(height: 10,),
Container(
width: double.infinity,
height: 5,
color: Colors.blue,
),
SizedBox(height: 10,),
Container(
width: double.infinity,
height: 5,
color: Colors.red,
),
SizedBox(height: 10,),
Container(
width: double.infinity,
height: 5,
color: Colors.green,
),
],
),
),
);
}
}
flutterfire configure
FlutterAppRequiredException: The current directory does not appear to be a Flutter application project.
実行しているフォルダがプロジェクトのフォルダでは無いと言われるが、しかしフォルダは間違っていない
pubspec.yaml を見比べると
dependencies:
flutter: # add
sdk: flutter # add
ちょっと他と違ったので、2行追加 で正常に動作
flutter で、versionName versionCode の設定するには?
pubspec.yaml にて
# flutter で、versionName versionCode の設定する version: 1.2.0+4
versionName が 1.2.0
versionCode が4 になります。
iOS だとbuild-name build-number となります。
コマンド実行で指定するには
flutter build appbundle --build-name=1.3.0 --build-number=4 flutter build ios --build-name=1.3.0 --build-number=4
Module 'app_tracking_transparency' not found
flutter からの起動は正常なのに、xcode からだと基本的にライブラリーが見つからない!
Module ‘xxx’ not found
runner.xcworkspace を開く
build でビルド成功
Xcodeを14.3にアップデートしてからArchive 作成時
// Xcodeを14.3にアップデートしてからArchive mkdir -p /Users/falco/Library/Developer/Xcode/DerivedData/Runner-bizyteowoysewphgsajrrszlkzyw/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/Runner.app/Frameworks Symlinked... rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FMDB.framework" "/Users/falco/Library/Developer/Xcode/DerivedData/Runner-bizyteowoysewphgsajrrszlkzyw/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks" building file list ... rsync: link_stat "/Users/falco/AndroidProjects/SharedStudy/ios/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FMDB.framework" failed: No such file or directory (2) done sent 29 bytes received 20 bytes 98.00 bytes/sec total size is 0 speedup is 0.00 rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/aaefcfd1-5c95-11ed-8734-2e32217d8374/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9] Command PhaseScriptExecution failed with a nonzero exit code
bulid script を修正(source=”$(readlink “${source}”)”を検索)
if [ -L "${source}" ]; then
echo "Symlinked..."
# source="$(readlink "${source}")"
source="$(readlink -f "${source}")"
fi
source=”$(readlink “${source}”)”
↓
source=”$(readlink -f “${source}”)”
flutter で、Google fonts を使用するには?
font を選択
https://fonts.google.com/?subset=japanese
#pubspec.yml
dependencies:
flutter:
sdk: flutter
google_fonts: ^3.0.1
// dart
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Text with Background Image',
theme: ThemeData(
primarySwatch: Colors.blue,
// Google Font の名前を指定する
textTheme: GoogleFonts.zenKakuGothicAntiqueTextTheme (
Theme.of(context).textTheme,
),
),
home: AutoPlayScreen(1),
);
}
}