技術情報

Flutterでフローティングアクションボタンについての変更する方法

1: 形状を変更する

FloatingActionButton( 
     shape: BeveledRectangleBorder(
          borderRadius: BorderRadius.zero
     ),
)

2:サイズを変更する

幅と高さは自由に調整できます。

SizedBox( 
    height:100,
    width:100,
    child:FloatingActionButton( 
       child: Icon(Icons.add), 
       onPressed: (){
            print("Button is pressed.");
        },
     ),
),

3:位置を変更する

場所を変更するには、ScaffoldのfloatingActionButtonLocationプロパティを使用します。

Scaffold(
    floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat
)

全部を纏めて、プロジェクトビルド した時

結果

return Scaffold(
        floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
        floatingActionButton: SizedBox(
          height: 100,
          width: 100,
          child: FloatingActionButton(
            child: Icon(Icons.add), 
            shape: BeveledRectangleBorder(borderRadius: BorderRadius.zero),
            onPressed: () {
              print("Button is pressed.");
            },
          ),
        ),
        backgroundColor: Colors.blue[100], 
        appBar: AppBar(
          title: Text("Floating Action Button"), 
          backgroundColor: Colors.redAccent, 
        ),
        body: Center(child: Text("Floating Action Button")));

金曜担当 – Ami



正規表現基礎(3)

今回はさまざまなプログラミング言語やツールで活用できる正規表現の記号を紹介します。
本記事は前回の「正規表現基礎(2)」の続きです。

続きを読む

Instagram will be rolling out for Quiet Mode function

Instagram announced it is expanding its choice of time management tools with the launch of a new feature called ‘Quiet Mode’. This feature helps users to have a break from the app by silencing incoming notifications, automatically replying to direct messages, and letting friends know they are not using the app by setting their status to ‘Quiet Mode’.

Quiet Mode Gradient
Credit: TechCrunch

Quiet Mode joins a handful of other screen time management tools Instagram now offers, including daily time spent widgets that let people track their app usage and send each other alerts, set “take a break” reminders break” after individual app sessions extend beyond a certain amount of time and various tools to pause, snooze, and unfollow pages, groups, and people to help further reduce engagement with content that is addictive.

The idea is not just a tool that encourages users to take a break. Instead, it focuses on the real-world impacts that accompany trying to step away from an app you use regularly, and where others expect you to be available.

According to Instagram, teens will be prompted to enable the feature when they spend a “certain” amount of time on Instagram at night, but quiet mode will be available to all users.

Quiet Mode will initially be available to users in the US, UK, Ireland, Canada, Australia, and New Zealand. Instagram says it hopes to expand to more countries soon.

Yuuma



気になるAPIをご紹介します

1 PokéAPI

子供の時、学校が終わった後学校から家まで歩きながら、ポケモンGOをやっていました。だから、これはお気に入りのひとつです。

PokéAPIは、ポケモンの情報(移動、タイプ、能力)をたくさん持っています。

2. GIPHY

GIPHYは世界最大のGIFとビデオライブラリで、強力な機能のスイートをカスタマイズできます。🎆🎢🎉

3 Breaking Bad

もしBreaking Badのファンなら、それについて確認すれば、いいと思います。名言やキャラクター、エピソードを取得できます。

参考画像 – google*

金曜担当 – Ami



Useful Basic Linux Commands

Today, I would like to share some useful basic linux commands. Let’s take a look at the following commands.

  1. cd – changes the current working directory
  2. pwd – prints the current working directory
  3. ls – lists the contents of a directory
  4. mkdir – creates a new directory
  5. touch – creates a new empty file
  6. ln – creates a link to a file or directory
  7. cp – copies a file or directory
  8. mv – moves a file or directory
  9. rm – removes a file or directory
  10. echo – prints a message to the terminal
  11. less – views a file with pagination
  12. cat – displays/print the contents of a file
  13. grep – searches for a pattern in a file
  14. head – displays the first few lines of a file
  15. tail – displays the last few lines of a file
  16. clear – clears the terminal screen
  17. uname – displays information about the system
  18. whoami – displays the current user
  19. passwd – changes the password for a user
  20. df – displays information about disk space on mounted filesystems.
  21. ps – displays information about running processes
  22. sudo – allows a user to run a command as a root (superuser)
  23. mount – mounts a filesystem
  24. chmod – changes the permissions of a file or directory
  25. chown – changes the ownership of a file or directory
  26. zip – compresses files into a zip archive
  27. unzip – extracts files from a zip archive
  28. tar – compresses and archive files and directories
  29. kill – sends a signal to a process to terminate
  30. killall – terminates all processes by name
  31. apt – a package manager for Debian-based systems
  32. wget – downloads a file from internet
  33. whereis – displays the locations of a command
  34. whatis – displays a short description of a command
  35. man – displays the manual page for a command

This is all for now. The details of each command can be explored with ‘man’ command by yourself.

Hope you enjoy that.

By asahi




アプリ関連ニュース

お問い合わせはこちら

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

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

お問い合わせフォーム