Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

widget

How do I center text vertically and horizontally in Flutter?

October 12, 2022 by Tarik

Text alignment center property setting only horizontal alignment. I used below code to set text vertically and horizontally center. Code: child: Center( child: Text( “Hello World”, textAlign: TextAlign.center, ), ),

Categories user-interface Tags alignment, flutter, text, user-interface, widget Leave a comment

Textarea that can do syntax highlighting on the fly?

October 9, 2022 by Tarik

It’s not possible to achieve the required level of control over presentation in a regular textarea. If you’re OK with that, try CodeMirror or Ace or Monaco (used in MS VSCode). From the duplicate thread – an obligatory wikipedia link: Comparison of JavaScript-based source code editors

Categories javascript Tags highlighting, html, javascript, richtextbox, widget Leave a comment

When the keyboard appears, the Flutter widgets resize. How to prevent this?

October 8, 2022 by Tarik

Updated Answer resizeToAvoidBottomPadding is now deprecated. The updated solution is to set resizeToAvoidBottomInset property to false. Original Answer In your Scaffold, set resizeToAvoidBottomPadding property to false.

Categories keyboard Tags flutter, keyboard, resize, textfield, widget Leave a comment

Resizing an iframe based on content

September 13, 2022 by Tarik

We had this type of problem, but slightly in reverse to your situation – we were providing the iframed content to sites on other domains, so the same origin policy was also an issue. After many hours spent trawling google, we eventually found a (somewhat..) workable solution, which you may be able to adapt to … Read more

Categories javascript Tags iframe, javascript, widget Leave a comment
Newer posts
← Previous Page1 … Page5 Page6

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa