Skip to content

Instantly share code, notes, and snippets.

View Rahiche's full-sized avatar
🏠
Working from home

Raouf Rahiche Rahiche

🏠
Working from home
View GitHub Profile
import 'package:flutter/material.dart';
class FlowExample extends StatefulWidget {
_FlowExampleState createState() => _FlowExampleState();
}
class _FlowExampleState extends State<FlowExample> with SingleTickerProviderStateMixin {
AnimationController openAnimation;
@override
// this will find a bluetooth printer device
void findBT() {
try {
mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
if(mBluetoothAdapter == null) {
Toast.makeText(PurchaseSummaryActivity.this, "No bluetooth adapter available", Toast.LENGTH_SHORT).show();
}
assets:
- asset/thesaurusEn.csv
- asset/data.csv
// Flutter code sample for Scaffold
// This example shows a [Scaffold] with a [body] and [FloatingActionButton].
// The [body] is a [Text] placed in a [Center] in order to center the text
// within the [Scaffold]. The [FloatingActionButton] is connected to a
// callback that increments a counter.
//
// ![The Scaffold has a white background with a blue AppBar at the top. A blue FloatingActionButton is positioned at the bottom right corner of the Scaffold.](https://flutter.github.io/assets-for-api-docs/assets/material/scaffold.png)
import 'package:flutter/material.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
import 'package:flutter/material.dart';
void main() async {
runApp(MyAppA());
}
final ration = 0.7;
final circleSize = 40.0;
class MyAppA extends StatelessWidget {
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
static const String _title = 'Flutter Code Sample';
@override
@Rahiche
Rahiche / menu_on_hover.dart
Created March 20, 2022 23:21
Create a menu relative to a widget that shows and hides smoothly
import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(home: Sample()));
}
class Sample extends StatefulWidget {
const Sample({Key? key}) : super(key: key);
@override