技術情報

Flutterの問題 : ステータスバーの下にウィジェットが重なるのを解決する方法

今回は、ステータスバーの下にウィジェットが重なって表示される場合の対処法を紹介します。この問題は、Scaffold()ウィジェットにappbarを追加していない時、bodyの下に直接表示されたいウィジェットを追加した時発生しています。

問題コード

Scaffold(
  body: Text("Hello World", 
      style: TextStyle(fontSize: 40)
    )
)

この問題の解決方法

SafeAreaのウィジェットで表示させたいウィジェットを追加すれば、解決できます。

Scaffold(
        body: SafeArea(
          child: Text("Hello World",
              style: TextStyle(fontSize: 40)
          ),
        )
    )

金曜担当 – Ami



Laravel Blade Flags Package

Today, I would like to share about a laravel package called Blade Flags. Let’s take a look.

This laravel package can be used to display countries or languages flags in blade files. It is very easy to use. You will not have to be handy with custom svg icons files.

To use this package, you will need to just install with composer.

composer require outhebox/blade-flags

Icons can be used as self-closing blade components as follows.

<x-flag-country-br />
<x-flag-country-cn />
<x-flag-country-gb />
<x-flag-country-ru />
<x-flag-country-us />

For more details, please get here.

This is all for now. Hope you enjoy that.

By Asahi



Facebook is removing some information fields from profiles

Facebook has been informing users that it will remove four information fields from profiles starting next month. These fields include Religious Views, Political Views, Address, and an “Area of Interest” field indicating the user’s sexual orientation. This change will take effect on December 1st.

A spokesperson told

“As part of our efforts to make Facebook easier to navigate and use, we’re removing a handful of profile fields: Interested In, Religious Views, Political Views, and Address,” the spokesperson said in a statement. “We’re sending notifications to people who have these fields filled out, letting them know these fields will be removed. This change doesn’t affect anyone’s ability to share this information about themselves elsewhere on Facebook.”

Facebook’s decision to remove these specific profile fields is part of an effort to optimize the platform, which currently consists of some somewhat outdated features. It is worth noting that the information fields that Facebook chooses to remove are not offered by other major social networks.

Platforms such as Instagram and TikTok have simple bios that allow users to share a little bit about themselves without going into specific details such as political or religious views. While some may have been interested in it, users may no longer want to share additional details about themselves online as the invasion of privacy has been revealed.

Yuuma



FlutterのCheckboxListTileでCheckboxを左寄せにする方法

今回はFlutterでCheckboxListTileのチェックボックスを左に揃える方法を共有します。

CheckboxをCheckboxListTileの左に配置する方法

CheckboxListTile(
  controlAffinity: ListTileControlAffinity.leading,
)

controlAffinity:ListTileControlAffinity.leading を設定すると、checkboxを CheckboxListTile の左側に配置することができます。

CheckboxListTile(
  value: false,
  controlAffinity: ListTileControlAffinity.leading,
  onChanged: (bool? value) {  

  },
  title: Text("Learning Flutter?"),
)

結果

CheckboxListTile(
value: true,
onChanged: (bool? value) {  
 setState(() {
  //});
},
title: Text("Learning Web?"),
),
CheckboxListTile( 
value: false,
controlAffinity: ListTileControlAffinity.leading,
onChanged: (bool? value) {  
setState(() {//});
},
title: Text("Learning Flutter?"),
),

金曜担当 – Ami



7 useful VS Code extensions for PHP developers

Today, I would like to share 7 useful VS Code extensions for PHP developers. Let’s take a look at the following names of extensions.

  1. PHP Intelephense
  2. PHP Debug
  3. PHP Namespace Resolver
  4. Larave Snippets
  5. Laravel Blade Snippets
  6. Laravel Model Snippets
  7. Laravel gotoview

To install the above extensions, you just need to search and install these name in Extensions tab of VS code interface.

This is all for now. Hope you enjoy that.

By Asahi




アプリ関連ニュース

お問い合わせはこちら

お問い合わせ・ご相談はお電話、またはお問い合わせフォームよりお受け付けいたしております。

tel. 06-6454-8833(平日 10:00~17:00)

お問い合わせフォーム