This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| // --- DATA STRUCTURE FOR CONTENT SECTIONS --- | |
| /// Defines a section of the document. | |
| class ContentSection { | |
| final String title; | |
| final String content; | |
| final GlobalKey key = GlobalKey(); // Unique key to find its position |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # i18n/strings_he.i18n.yaml | |
| general: | |
| choose_language: בחר שפה | |
| validationRequiredField: שדה חובה | |
| cancel: ביטול | |
| finish: סיום | |
| error: תקלה | |
| back: חזור | |
| success: הפעולה הושלמה בהצלחה | |
| confirm: אישור |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Want to support my work 🤝? https://buymeacoffee.com/vandad | |
| import 'package:flutter/material.dart'; | |
| class ListItem { | |
| const ListItem(); | |
| factory ListItem.emptyTile() => EmptyTile(); | |
| factory ListItem.tile( | |
| String title, | |
| String subTitle, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:html'; | |
| void main() async { | |
| print(await getCommits(repo: 'river_pod', owner: 'rrousselGit')); | |
| } | |
| Future<String> getCommits({required String repo, required String owner}) async => RegExp(r'(\d+)') | |
| .allMatches((await HttpRequest.request( | |
| 'https://api.github.com/repos/$owner/$repo/commits?per_page=1')) | |
| .responseHeaders['link']!) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/foundation.dart' show kIsWeb; | |
| import 'package:flutter/material.dart'; | |
| import 'package:statsfl/statsfl.dart'; | |
| void main() { | |
| runApp( | |
| StatsFl( | |
| isEnabled: true, | |
| showText: true, | |
| sampleTime: 0.05, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I/flutter ( 7824): JitsiMeetingOptions: JitsiMeetingOptions{room: plugintestroom, serverURL: https://meet.jitsi.si, subject: My Plugin Test Meeting, token: null, audioMuted: true, audioOnly: true, videoMuted: true, userDisplayName: Plugin Test User, userEmail: fake@email.com} | |
| D/JITSI_MEET_PLUGIN( 7824): method: joinMeeting | |
| D/JITSI_MEET_PLUGIN( 7824): arguments: {videoMuted=true, subject=My Plugin Test Meeting, serverURL=https://meet.jitsi.si, audioOnly=true, audioMuted=true, userDisplayName=Plugin Test User, userEmail=fake@email.com, room=plugintestroom, token=null} | |
| D/JITSI_MEET_PLUGIN( 7824): Joining Room: plugintestroom | |
| W/ActivityThread( 7824): handleWindowVisibility: no activity for token android.os.BinderProxy@1763f06 | |
| D/ReactNative( 7824): ReactInstanceManager.createReactContextInBackground() | |
| D/ReactNative( 7824): ReactInstanceManager.attachRootViewToInstance() | |
| I/JitsiMeetSDK( 7824): AudioMode Update audio route for mode: 0 | |
| I/JitsiMeetSDK( 7824): AudioMode Updating audio device list | |
| I/JitsiMeetSDK( 7824): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp( | |
| MaterialApp( | |
| debugShowCheckedModeBanner: false, | |
| home: CupPickerDemo(), | |
| ), | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| final text = ''' | |
| Call me Ishmael. Some years ago—never mind how long precisely—having | |
| little or no money in my purse, and nothing particular to interest me | |
| on shore, I thought I would sail about a little and see the watery part | |
| of the world. It is a way I have of driving off the spleen and | |
| regulating the circulation. Whenever I find myself growing grim about | |
| the mouth; whenever it is a damp, drizzly November in my soul; whenever | |
| I find myself involuntarily pausing before coffin warehouses, and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| TextStyle posRes = TextStyle(color: Colors.white, backgroundColor: Colors.red), | |
| negRes = TextStyle(color: Colors.black, backgroundColor: Colors.white); | |
| String search; | |
| final text = ''' | |
| Call me Ishmael. Some years ago—never mind how long precisely—having | |
| little or no money in my purse, and nothing particular to interest me |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() => runApp( | |
| StatefulBuilder(builder: (context, setState) { | |
| return MaterialApp( | |
| home: Scaffold( | |
| appBar: AppBar( | |
| backgroundColor: Colors.white, | |
| title: TextField( | |
| style: TextStyle(fontSize: 22), | |
| decoration: InputDecoration(hintText: "Search"), | |
| onChanged: (t) { |
NewerOlder