Can Gtk widgets be imported into Gtk# - gtk

I'm trying to use the GtkSourceView into a Gtk# project, as the TextView is simply horrid.
How can I do that?
There's a GtkSourceView-sharp but it's outrageously dated and doesn't work.

I can't answer you about all the widgets, but about GtkSourceView, I used it a couple of days ago and it works just fine, even with Glade. The Nuget package I used is GtkSourceSharp, which version is 3.24.24.34, like the latest GtkSharp available.
If you need to use it with Glade just remember do a dummy declaration before loading the .glade file that contains the actual widget:
var tmp = new SourceView();
Builder builder = new Builder(null, "file.glade", null);

Related

Why local package widgets not showing up time to time?

I have a ui package, this package simply contains some(10+) widgets and they are all just a widgets. None of them some complex controller or etc so when I use them, I can't miss the something like initializers or etc.
So my problem is, after the installation an app(which is contains a lot of witget from that package) everything working correctly like the image.
But if I change the current app on android/real device(and without debug mode), like switching the chrome and spend some time at the browser, after returning the app, all widgets showing off, they are simply dissappering. Like the image;
So my question is simple, why can it be happen? By the way, the divider as shown the middle of the page,is not part of the package, it is located in app/lib folder.
and lastly, I don't give any change but I have 57 svg file in the package but I am not call all of them at same time and their total size just 833,5kb, but maybe it can be related?
I don't have any native knowledge but if anyone can point me some tips, I will be glad.
Not really sure if it's a bug related to the new version of Flutter (3.0.2) but upgrading ext.kotlin_version inside android/build.gradle to 1.7.0 do the trick.

How to modify flutter app code automatically

Is it possible that we ship the android app, which just loads a file(like /data/data/com.example/files/data.txt) into the memory, like we load fonts dynamically with loadFontFronList, which can be manually updated by the app automatically.
Thanking you...
Well, it's not possible like you said. but there're plugins by which you can achieve dynamic code at some level.
e.g. : Dynamic Widget , Json Dynamic Widget

How use Tailwind-css in a Flutter application

I'm moving the first steps with Flutter and I was wondering if is possible to use tailwinds styles and components.
thank you
Well, i don't think there is an equivalent to MaterialApp for Tailwind CSS. but you can try this package:
https://pub.dev/packages/tailwind_colors
And also building your own.
flutter devs for this issue I created a package that can be used as Tailwind CSS styling for your flutter projects here you can check it:
https://pub.dev/packages/tailwind_cli

Adobe XD to flutter all widgets not exporting

Recently, I downloaded a UI Kit. I am trying to convert this UI kit into flutter via xd to flutter plugin.
I have downloaded the plugin and trying to export all the widgets. I have given the proper path but it is not exporting at all, even it is not showing any error or something.
It's the 'prototype interactions' check box you have selected in settings. I just removed all the check boxes to get it working. That should at least get you moving. Just had the same issue.
first select the path folder you want to export the dart file then click export all widgets you can get all widgets dart files

Using Multiple Glade Files : GtkBuilder

I'm writing an app for gnome which will support plugins.
Each plugin will contain a glade file and a python script.
How do I embed the glade file from the plugin in the main interface.
Plugin glade files should contain a page/tab and will be embeded into a notebook in the main interface.
please help.
You have two options:
You can open the two glade files into two different GtkBuilder objects, and then manually add the content of the plugin file into the main window. You could put the content of the plugin into a box named pluginbox and the notebook of your main app would be named mynotebook. In code should look like this:
main_builder = gtk.Builder()
main_builder.add_from_file('main.glade')
plugin_builder = gtk.Builder()
plugin_builder.add_from_file('plugin.glade')
mynotebook = main_builder.get_object('mynotebook')
pluginbox = plugin_builder.get_object('pluginbox')
mynotebook.append_page(pluginbox)
You can add different files to one builder. You should be sure that there is no conflict with names in the two files:
main_builder = gtk.Builder()
main_builder.add_from_file('main.glade')
main_builder.add_from_file('plugin.glade')
mynotebook = main_builder.get_object('mynotebook')
pluginbox = main_builder.get_object('pluginbox')
mynotebook.append_page(pluginbox)
The best way would be to make the plugins load the glade file themselves and have a function that the main program can call to get the page/tab. That way the plugin can connect all the signals it needs to. gtk.Builder documentation.