QC

Xây dựng appar cho home screen

 Mục tiêu cần đạt được:

Tạo appar chứa :  CupertinoSearchTextField Thanh search tìm kiếm ở HOME.


Bước 1:  Tạo  home.dart và tên homescreen

Cho đoạn code này vào :


import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class homescreen extends StatefulWidget {
  const homescreen({super.key});

  @override
  State<homescreen> createState() => _homescreenState();
}

class _homescreenState extends State<homescreen> {
  @override
  Widget build(BuildContext context) {
    return  Scaffold(

        appBar: AppBar(
            elevation: 0,
            backgroundColor: Colors.white,
            title: const CupertinoSearchTextField(),
        ),

         
    );
  }
}


Chú ý đoạn code này vẽ thanh search :

        appBar: AppBar(
            elevation: 0,
            backgroundColor: Colors.white,
            title: const CupertinoSearchTextField(),
        ),

Sau đó vào trong custemhome_screen.dart

Và thay lại hàm : 


GIT : https://github.com/ANH2018/Bottom-Navigation-Bar/tree/Bottom_bar_new_window




Nap Code vào PY32F003 dùng Stlink

 Nap Code vào PY32F003 dùng Stlink Bước 1: Cài đặt  KeilC v5.39 theo link sau ( chú ý 5.39 keil c mới nạp ok). https://edge07.111.ir.cdn.ir/...